summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-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 1e72371e76..30c1792ffa 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -35,7 +35,7 @@ cmake_do_generate_toolchain_file() {
35 cat > ${WORKDIR}/toolchain.cmake <<EOF 35 cat > ${WORKDIR}/toolchain.cmake <<EOF
36# CMake system name must be something like "Linux". 36# CMake system name must be something like "Linux".
37# This is important for cross-compiling. 37# This is important for cross-compiling.
38set( CMAKE_SYSTEM_NAME `echo ${TARGET_OS} | sed 's/^./\u&/'` ) 38set( CMAKE_SYSTEM_NAME `echo ${TARGET_OS} | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` )
39set( CMAKE_SYSTEM_PROCESSOR ${TARGET_ARCH} ) 39set( CMAKE_SYSTEM_PROCESSOR ${TARGET_ARCH} )
40set( CMAKE_C_COMPILER ${OECMAKE_C_COMPILER} ) 40set( CMAKE_C_COMPILER ${OECMAKE_C_COMPILER} )
41set( CMAKE_CXX_COMPILER ${OECMAKE_CXX_COMPILER} ) 41set( CMAKE_CXX_COMPILER ${OECMAKE_CXX_COMPILER} )