summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schuster <rschus@entw2.(none)>2009-03-12 16:08:29 +0100
committerRobert Schuster <rschus@entw2.(none)>2009-03-20 09:43:33 +0100
commit387c5960a595b922fbb017b5de37feb318ae2dad (patch)
tree0f073eda83166d3e84d8dcfabc13074259edfad6
parent295488d84cc0b856e97a6fab0d725d33e5e55873 (diff)
cmake.bbclass: Allow overriding path-to-source argument for cmake call.
-rw-r--r--classes/cmake.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/cmake.bbclass b/classes/cmake.bbclass
index faa4768d90..8fd25cd7a5 100644
--- a/classes/cmake.bbclass
+++ b/classes/cmake.bbclass
@@ -3,8 +3,11 @@ DEPENDS += " cmake-native "
# We want the staging and installing functions from autotools
inherit autotools
+OECMAKE_SOURCEPATH ?= "."
+
cmake_do_configure() {
- cmake . -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -Wno-dev \
+ cmake ${OECMAKE_SOURCEPATH} \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -Wno-dev \
-DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_HOST} \
${EXTRA_OECMAKE}
}