diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/cmake.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index ab23bedb38..432427e913 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass | |||
@@ -26,6 +26,7 @@ OECMAKE_CXX_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} ${CXXFLAGS} -DNDEBUG" | |||
26 | 26 | ||
27 | OECMAKE_RPATH ?= "" | 27 | OECMAKE_RPATH ?= "" |
28 | OECMAKE_PERLNATIVE_DIR ??= "" | 28 | OECMAKE_PERLNATIVE_DIR ??= "" |
29 | OECMAKE_EXTRA_ROOT_PATH ?= "" | ||
29 | 30 | ||
30 | cmake_do_generate_toolchain_file() { | 31 | cmake_do_generate_toolchain_file() { |
31 | cat > ${WORKDIR}/toolchain.cmake <<EOF | 32 | cat > ${WORKDIR}/toolchain.cmake <<EOF |
@@ -42,7 +43,7 @@ set( CMAKE_CXX_FLAGS_RELEASE "${OECMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "CXXFLA | |||
42 | 43 | ||
43 | # only search in the paths provided so cmake doesnt pick | 44 | # only search in the paths provided so cmake doesnt pick |
44 | # up libraries and tools from the native build machine | 45 | # up libraries and tools from the native build machine |
45 | set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR}) | 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_MODE_PROGRAM ONLY ) | 47 | set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY ) |
47 | set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) | 48 | set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) |
48 | set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) | 49 | set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) |