summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Werner <ken.werner@linaro.org>2011-12-14 23:58:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-03 16:33:21 +0000
commit4be9d8259678be81ae4246a8c162a816c29fb1dd (patch)
treebcb55fa1531a49a8736f3dc25e0035d68ce929a3
parenta29939639b0ad5dfb57fac6588e65c095ed448f6 (diff)
downloadpoky-4be9d8259678be81ae4246a8c162a816c29fb1dd.tar.gz
Add EXTERNAL_TOOLCHAIN to CMAKE_FIND_ROOT_PATH
This allows cmake to find the binaries of an external toolchain. (From OE-Core rev: 7b355ad09a622cfe57c66674ed1affd61c4d872e) Signed-off-by: Ken Werner <ken.werner@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/cmake.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 432427e913..8aec759872 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -43,7 +43,7 @@ set( CMAKE_CXX_FLAGS_RELEASE "${OECMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "CXXFLA
43 43
44# only search in the paths provided so cmake doesnt pick 44# only search in the paths provided so cmake doesnt pick
45# up libraries and tools from the native build machine 45# up libraries and tools from the native build machine
46set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ) 46set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ${EXTERNAL_TOOLCHAIN})
47set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY ) 47set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
48set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) 48set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
49set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) 49set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )