/[gentoo-x86]/eclass/cmake-utils.eclass
Gentoo

Diff of /eclass/cmake-utils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.88 Revision 1.89
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.88 2012/12/03 10:33:50 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.89 2012/12/03 12:05:51 mgorny Exp $
4 4
5# @ECLASS: cmake-utils.eclass 5# @ECLASS: cmake-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
176 176
177 # In the next call, both variables will be set already 177 # In the next call, both variables will be set already
178 # and we'd have to know which one takes precedence. 178 # and we'd have to know which one takes precedence.
179 _RESPECT_CMAKE_BUILD_DIR=1 179 _RESPECT_CMAKE_BUILD_DIR=1
180 fi 180 fi
181
181 if [[ ${_RESPECT_CMAKE_BUILD_DIR} ]]; then 182 if [[ ${_RESPECT_CMAKE_BUILD_DIR} ]]; then
182 BUILD_DIR=${CMAKE_BUILD_DIR} 183 BUILD_DIR=${CMAKE_BUILD_DIR:-${WORKDIR}/${P}_build}
184 else
185 : ${BUILD_DIR:=${WORKDIR}/${P}_build}
183 fi 186 fi
184
185 : ${BUILD_DIR:=${WORKDIR}/${P}_build}
186 fi 187 fi
187 188
188 # Backwards compatibility for getting the value. 189 # Backwards compatibility for getting the value.
189 CMAKE_BUILD_DIR=${BUILD_DIR} 190 CMAKE_BUILD_DIR=${BUILD_DIR}
190 191

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89

  ViewVC Help
Powered by ViewVC 1.1.20