From: Koen Kooi Date: Wed, 1 Jul 2015 06:57:25 +0000 (+0200) Subject: cmake bbclass: fix support for native builds X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~29880 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=907828acebcf07d7a9367432432d04e0dab283d3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cmake bbclass: fix support for native builds For native builds of recipes (e.g. mariadb-native) cmake *must* look outside of its sysroot to find the compiler, so instruct it to do so. Signed-off-by: Koen Kooi Signed-off-by: Ross Burton --- diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index b0a3972d475..c1742461abf 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -27,6 +27,9 @@ OECMAKE_RPATH ?= "" OECMAKE_PERLNATIVE_DIR ??= "" OECMAKE_EXTRA_ROOT_PATH ?= "" +OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "ONLY" +OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM_class-native = "BOTH" + cmake_do_generate_toolchain_file() { cat > ${WORKDIR}/toolchain.cmake <