summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-03-28 13:06:22 +0200
committerKoen Kooi <koen@openembedded.org>2010-03-28 13:06:22 +0200
commit7574d78b44aaa3905eced296c2150f1895267688 (patch)
treeb2daaa219676d09895c64924ff94edad60226a5f /classes
parent1340d855656ee15943234cc2d121278585f37b47 (diff)
cmake bbclass: s/build/target/ for cflags
Diffstat (limited to 'classes')
-rw-r--r--classes/cmake.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/cmake.bbclass b/classes/cmake.bbclass
index 937efa026e..255deba62e 100644
--- a/classes/cmake.bbclass
+++ b/classes/cmake.bbclass
@@ -19,8 +19,8 @@ OECMAKE_C_COMPILER ?= "`echo ${CC} | sed 's/^\([^ ]*\).*/\1/'`"
OECMAKE_CXX_COMPILER ?= "`echo ${CXX} | sed 's/^\([^ ]*\).*/\1/'`"
# Compiler flags
-OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${BUILD_CPPFLAGS}"
-OECMAKE_CXX_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${BUILD_CPPFLAGS} -fpermissive"
+OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${TARGET_CPPFLAGS}"
+OECMAKE_CXX_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${TARGET_CPPFLAGS} -fpermissive"
OECMAKE_C_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} -DNDEBUG"
OECMAKE_CXX_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} -DNDEBUG"