diff options
Diffstat (limited to 'meta/classes-recipe/cmake.bbclass')
-rw-r--r-- | meta/classes-recipe/cmake.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes-recipe/cmake.bbclass b/meta/classes-recipe/cmake.bbclass index ea836d5c0d..c4ac96524a 100644 --- a/meta/classes-recipe/cmake.bbclass +++ b/meta/classes-recipe/cmake.bbclass | |||
@@ -90,12 +90,14 @@ def map_host_arch_to_uname_arch(host_arch): | |||
90 | return "ppc64" | 90 | return "ppc64" |
91 | return host_arch | 91 | return host_arch |
92 | 92 | ||
93 | |||
93 | cmake_do_generate_toolchain_file() { | 94 | cmake_do_generate_toolchain_file() { |
94 | if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then | 95 | if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then |
95 | cmake_crosscompiling="set( CMAKE_CROSSCOMPILING FALSE )" | 96 | cmake_crosscompiling="set( CMAKE_CROSSCOMPILING FALSE )" |
96 | else | 97 | else |
97 | cmake_sysroot="set( CMAKE_SYSROOT \"${RECIPE_SYSROOT}\" )" | 98 | cmake_sysroot="set( CMAKE_SYSROOT \"${RECIPE_SYSROOT}\" )" |
98 | fi | 99 | fi |
100 | |||
99 | cat > ${WORKDIR}/toolchain.cmake <<EOF | 101 | cat > ${WORKDIR}/toolchain.cmake <<EOF |
100 | # CMake system name must be something like "Linux". | 102 | # CMake system name must be something like "Linux". |
101 | # This is important for cross-compiling. | 103 | # This is important for cross-compiling. |