From: Phil Blundell Date: Mon, 15 Aug 2011 16:16:31 +0000 (+0100) Subject: cmake.bbclass, perlnative.bbclass: arrange for cmake to find perl-native X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~44493 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=add9e4e30e0b1e0f93479b43ce61953efb90985d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cmake.bbclass, perlnative.bbclass: arrange for cmake to find perl-native When CMake is looking for perl, it only searches in the specific directories that it's told about and ignores ${PATH}. If perlnative is in use, ensure that the appropriate installation path is added to the list of places that cmake will look for perl, otherwise it won't ever be found. Signed-off-by: Phil Blundell --- diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 89a154f73c5..ab23bedb380 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -25,6 +25,7 @@ OECMAKE_C_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} ${CPPFLAGS} -DNDEBUG" OECMAKE_CXX_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} ${CXXFLAGS} -DNDEBUG" OECMAKE_RPATH ?= "" +OECMAKE_PERLNATIVE_DIR ??= "" cmake_do_generate_toolchain_file() { cat > ${WORKDIR}/toolchain.cmake <