diff options
-rw-r--r-- | meta/classes/cmake.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 10f8f98b2e..3549c38f15 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass | |||
@@ -13,6 +13,7 @@ inherit autotools | |||
13 | # C/C++ Compiler (without cpu arch/tune arguments) | 13 | # C/C++ Compiler (without cpu arch/tune arguments) |
14 | OECMAKE_C_COMPILER ?= "`echo ${CC} | sed 's/^\([^ ]*\).*/\1/'`" | 14 | OECMAKE_C_COMPILER ?= "`echo ${CC} | sed 's/^\([^ ]*\).*/\1/'`" |
15 | OECMAKE_CXX_COMPILER ?= "`echo ${CXX} | sed 's/^\([^ ]*\).*/\1/'`" | 15 | OECMAKE_CXX_COMPILER ?= "`echo ${CXX} | sed 's/^\([^ ]*\).*/\1/'`" |
16 | OECMAKE_AR ?= "${AR}" | ||
16 | 17 | ||
17 | # Compiler flags | 18 | # Compiler flags |
18 | OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CFLAGS}" | 19 | OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CFLAGS}" |
@@ -35,6 +36,7 @@ set( CMAKE_SYSTEM_PROCESSOR ${TARGET_ARCH} ) | |||
35 | set( CMAKE_C_COMPILER ${OECMAKE_C_COMPILER} ) | 36 | set( CMAKE_C_COMPILER ${OECMAKE_C_COMPILER} ) |
36 | set( CMAKE_CXX_COMPILER ${OECMAKE_CXX_COMPILER} ) | 37 | set( CMAKE_CXX_COMPILER ${OECMAKE_CXX_COMPILER} ) |
37 | set( CMAKE_ASM_COMPILER ${OECMAKE_C_COMPILER} ) | 38 | set( CMAKE_ASM_COMPILER ${OECMAKE_C_COMPILER} ) |
39 | set( CMAKE_AR ${OECMAKE_AR} CACHE FILEPATH "Archiver" ) | ||
38 | set( CMAKE_C_FLAGS "${OECMAKE_C_FLAGS}" CACHE STRING "CFLAGS" ) | 40 | set( CMAKE_C_FLAGS "${OECMAKE_C_FLAGS}" CACHE STRING "CFLAGS" ) |
39 | set( CMAKE_CXX_FLAGS "${OECMAKE_CXX_FLAGS}" CACHE STRING "CXXFLAGS" ) | 41 | set( CMAKE_CXX_FLAGS "${OECMAKE_CXX_FLAGS}" CACHE STRING "CXXFLAGS" ) |
40 | set( CMAKE_ASM_FLAGS "${OECMAKE_C_FLAGS}" CACHE STRING "ASM FLAGS" ) | 42 | set( CMAKE_ASM_FLAGS "${OECMAKE_C_FLAGS}" CACHE STRING "ASM FLAGS" ) |