Patchwork [2/3] Add EXTERNAL_TOOLCHAIN to CMAKE_FIND_ROOT_PATH

login
register
mail settings
Submitter Ken Werner
Date Dec. 14, 2011, 10:58 p.m.
Message ID <1323903512-7344-3-git-send-email-ken.werner@linaro.org>
Download mbox | patch
Permalink /patch/16947/
State Accepted
Commit 7b355ad09a622cfe57c66674ed1affd61c4d872e
Headers show

Comments

Ken Werner - Dec. 14, 2011, 10:58 p.m.
This allows cmake to find the binaries of an external toolchain.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
---
 meta/classes/cmake.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 432427e..8aec759 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
 
 # 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} )
+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_PROGRAM ONLY )
 set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
 set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )