From: Andrew Gabbasov Date: Wed, 28 Sep 2011 12:10:12 +0000 (+0400) Subject: cmake.bbclass: adding extendable extra variable to root path X-Git-Tag: 2015-4~13277 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=23be60dad6a705f151520e3eda2da5e02230f5fd;p=openembedded-core.git cmake.bbclass: adding extendable extra variable to root path Introducing a hook variable for various .conf files to add extra path elements to cmake. For example, it can be used in external toolchain conf file to add ${TOOLCHAIN_PATH} to cmake root path search. Signed-off-by: Andrew Gabbasov Signed-off-by: Richard Purdie --- diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index ab23bedb38..432427e913 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -26,6 +26,7 @@ OECMAKE_CXX_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} ${CXXFLAGS} -DNDEBUG" OECMAKE_RPATH ?= "" OECMAKE_PERLNATIVE_DIR ??= "" +OECMAKE_EXTRA_ROOT_PATH ?= "" cmake_do_generate_toolchain_file() { cat > ${WORKDIR}/toolchain.cmake <