summaryrefslogtreecommitdiff
path: root/classes/cmake.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/cmake.bbclass')
-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}
}