From 907828acebcf07d7a9367432432d04e0dab283d3 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 1 Jul 2015 08:57:25 +0200 Subject: 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 --- meta/classes/cmake.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index b0a3972d47..c1742461ab 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 <