cmake.bbclass: Allow overriding path-to-source argument for cmake call.
[openembedded.git] / classes / cmake.bbclass
1 DEPENDS += " cmake-native "
2
3 # We want the staging and installing functions from autotools
4 inherit autotools
5
6 OECMAKE_SOURCEPATH ?= "."
7
8 cmake_do_configure() {
9      cmake ${OECMAKE_SOURCEPATH} \
10      -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -Wno-dev \
11      -DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_HOST} \
12      ${EXTRA_OECMAKE}
13 }
14
15 EXPORT_FUNCTIONS do_configure