summaryrefslogtreecommitdiff
path: root/eclass/cmake-utils.eclass
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-05-02 17:17:05 +0200
committerTomas Chvatal <scarabeus@gentoo.org>2009-05-02 17:17:05 +0200
commit8ad3ebe206c305706e5139568b0d1c344b0f8d46 (patch)
tree3056767f92650a32913e10fb60880f8b39213b3d /eclass/cmake-utils.eclass
parent354ad47f4fa9f0be8b242af7b536eeed8e7d8f80 (diff)
downloadkde-8ad3ebe206c305706e5139568b0d1c344b0f8d46.tar.gz
kde-8ad3ebe206c305706e5139568b0d1c344b0f8d46.tar.bz2
kde-8ad3ebe206c305706e5139568b0d1c344b0f8d46.zip
Move the use/build dir check to correct place in src_configure
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 0c8981bb6c2..0f7e28e52ee 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -234,6 +234,8 @@ Install path: ${CMAKE_INSTALL_PREFIX}\n")' >> CMakeLists.txt
cmake-utils_src_configure() {
debug-print-function ${FUNCNAME} "$@"
+ _check_build_dir
+
# check if CMakeLists.txt exist and if no then die
if [[ ! -e "${CMAKE_USE_DIR}"/CMakeLists.txt ]] ; then
eerror "I was unable to locate CMakeLists.txt under:"
@@ -281,7 +283,6 @@ _EOF_
[[ -n ${CMAKE_NO_COLOR} ]] && echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> ${common_config}
cmakeargs="-C ${common_config} ${cmakeargs}"
- _check_build_dir
mkdir -p "${CMAKE_BUILD_DIR}"
pushd "${CMAKE_BUILD_DIR}" > /dev/null
debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: mycmakeargs is $cmakeargs"