| 1 | # Copyright 1999-2009 Gentoo Foundation |
1 | # Copyright 1999-2009 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.30 2009/08/08 20:08:02 arfrever Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.31 2009/10/16 12:24:09 ssuominen 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 | # |
8 | # |
| … | |
… | |
| 242 | # @FUNCTION: cmake-utils_src_configure |
242 | # @FUNCTION: cmake-utils_src_configure |
| 243 | # @DESCRIPTION: |
243 | # @DESCRIPTION: |
| 244 | # General function for configuring with cmake. Default behaviour is to start an |
244 | # General function for configuring with cmake. Default behaviour is to start an |
| 245 | # out-of-source build. |
245 | # out-of-source build. |
| 246 | cmake-utils_src_configure() { |
246 | cmake-utils_src_configure() { |
|
|
247 | export XDG_CONFIG_HOME="${T}" |
|
|
248 | |
| 247 | debug-print-function ${FUNCNAME} "$@" |
249 | debug-print-function ${FUNCNAME} "$@" |
| 248 | |
250 | |
| 249 | _check_build_dir init |
251 | _check_build_dir init |
| 250 | |
252 | |
| 251 | # check if CMakeLists.txt exist and if no then die |
253 | # check if CMakeLists.txt exist and if no then die |