summaryrefslogtreecommitdiff
path: root/meta/classes/cmake.bbclass
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan@herbrechtsmeier.net>2013-08-14 10:47:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-16 11:14:13 +0100
commit044037d8add3556a90ac4da5991e1e5975d62e25 (patch)
treef780c8e3db6f7bcee429320f6afba6e1f294a410 /meta/classes/cmake.bbclass
parent09c609afbfb6e9a2504166d0fe8c7ae3d8ae9ebd (diff)
downloadopenembedded-core-044037d8add3556a90ac4da5991e1e5975d62e25.tar.gz
openembedded-core-044037d8add3556a90ac4da5991e1e5975d62e25.tar.bz2
openembedded-core-044037d8add3556a90ac4da5991e1e5975d62e25.zip
cmake.bbclass: Don't use packages from the native build machine
Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r--meta/classes/cmake.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 310242ec27..8e579a7f9e 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -49,6 +49,7 @@ set( CMAKE_CXX_LINK_FLAGS "${OECMAKE_CXX_LINK_FLAGS}" CACHE STRING "LDFLAGS" )
# only search in the paths provided so cmake doesnt pick
# up libraries and tools from the native build machine
set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ${EXTERNAL_TOOLCHAIN})
+set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )