diff options
author | Robert Schuster <rschus@entw2.(none)> | 2009-03-12 16:08:29 +0100 |
---|---|---|
committer | Robert Schuster <rschus@entw2.(none)> | 2009-03-20 09:43:33 +0100 |
commit | 387c5960a595b922fbb017b5de37feb318ae2dad (patch) | |
tree | 0f073eda83166d3e84d8dcfabc13074259edfad6 | |
parent | 295488d84cc0b856e97a6fab0d725d33e5e55873 (diff) |
cmake.bbclass: Allow overriding path-to-source argument for cmake call.
-rw-r--r-- | classes/cmake.bbclass | 5 |
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} } |