summaryrefslogtreecommitdiff
path: root/eclass/cmake-utils.eclass
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-05-02 16:59:03 +0200
committerTomas Chvatal <scarabeus@gentoo.org>2009-05-02 16:59:03 +0200
commit354ad47f4fa9f0be8b242af7b536eeed8e7d8f80 (patch)
tree56db7b0f69e82a8037698b7eebe141e60b21cf5b /eclass/cmake-utils.eclass
parent3eb9114c8e65cc4e09f635664bdef0a22f1eae45 (diff)
downloadkde-354ad47f4fa9f0be8b242af7b536eeed8e7d8f80.tar.gz
kde-354ad47f4fa9f0be8b242af7b536eeed8e7d8f80.tar.bz2
kde-354ad47f4fa9f0be8b242af7b536eeed8e7d8f80.zip
Move variable declaration to the correct place, we cant define it in global scope when we can redefine it later in the ebuild global scope.
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 92a0ff28d74..0c8981bb6c2 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -111,18 +111,18 @@ _use_me_now_inverted() {
# specific compiler flags overriding make.conf.
: ${CMAKE_BUILD_TYPE:=Gentoo}
-# @ECLASS-VARIABLE: CMAKE_USE_DIR
-# @DESCRIPTION:
-# Sets the directory where we are working with cmake.
-# For example when application uses autotools and only one
-# plugin needs to be done by cmake.
-# By default it uses ${S}.
-: ${CMAKE_USE_DIR:=${S}}
-
# @FUNCTION: _check_build_dir
# @DESCRIPTION:
# Determine using IN or OUT source build
_check_build_dir() {
+ # @ECLASS-VARIABLE: CMAKE_USE_DIR
+ # @DESCRIPTION:
+ # Sets the directory where we are working with cmake.
+ # For example when application uses autotools and only one
+ # plugin needs to be done by cmake.
+ # By default it uses ${S}.
+ : ${CMAKE_USE_DIR:=${S}}
+
# in/out source build
if [[ -n "${CMAKE_IN_SOURCE_BUILD}" ]]; then
CMAKE_BUILD_DIR="${CMAKE_USE_DIR}"