From: Robert Schuster Date: Thu, 12 Mar 2009 15:08:29 +0000 (+0100) Subject: cmake.bbclass: Allow overriding path-to-source argument for cmake call. X-Git-Tag: Release-2010-05/1~3796^2~57^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=387c5960a595b922fbb017b5de37feb318ae2dad;p=openembedded.git cmake.bbclass: Allow overriding path-to-source argument for cmake call. --- 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} }