diff options
author | Ken Werner <ken.werner@linaro.org> | 2011-12-14 23:58:31 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-03 16:33:21 +0000 |
commit | 4be9d8259678be81ae4246a8c162a816c29fb1dd (patch) | |
tree | bcb55fa1531a49a8736f3dc25e0035d68ce929a3 | |
parent | a29939639b0ad5dfb57fac6588e65c095ed448f6 (diff) | |
download | poky-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.bbclass | 2 |
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 |
46 | set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ) | 46 | set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ${EXTERNAL_TOOLCHAIN}) |
47 | set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY ) | 47 | set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY ) |
48 | set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) | 48 | set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) |
49 | set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) | 49 | set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) |