summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2012-02-21 14:34:02 -0500
committerPhilip Balister <philip@opensdr.com>2012-02-21 14:34:02 -0500
commit1c29b595accd6c270d3d7864caf9cccea88e9c4e (patch)
treee4e37ec9aa259e5af84e7a9809a8c359fb996254 /host
parentf0ac072a82fdd90438c2826e02aed0546be96014 (diff)
downloaduhd-1c29b595accd6c270d3d7864caf9cccea88e9c4e.tar.gz
uhd-1c29b595accd6c270d3d7864caf9cccea88e9c4e.tar.bz2
uhd-1c29b595accd6c270d3d7864caf9cccea88e9c4e.zip
Try really hard to get cmake to use compiler flags from the toolchain file.
See: http://www.mail-archive.com/cmake@cmake.org/msg33248.html Also credit to OpenEmbedded for doing something similar in the toolchain file they create. Note that adding the SYSTEM_NAME to the toolchain file sets CROSS_COMPILING, which is not what we want for native compiling. Signed-off-by: Philip Balister <philip@opensdr.com>
Diffstat (limited to 'host')
-rw-r--r--host/cmake/Toolchains/arm_cortex_a8_native.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/cmake/Toolchains/arm_cortex_a8_native.cmake b/host/cmake/Toolchains/arm_cortex_a8_native.cmake
index 7dbb80049..8e60eaab1 100644
--- a/host/cmake/Toolchains/arm_cortex_a8_native.cmake
+++ b/host/cmake/Toolchains/arm_cortex_a8_native.cmake
@@ -4,5 +4,5 @@
########################################################################
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_C_COMPILER gcc)
-set(CMAKE_CXX_FLAGS "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp")
-set(CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS}) #same flags for C sources
+set(CMAKE_CXX_FLAGS "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" CACHE STRING "" FORCE)
+set(CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "" FORCE) #same flags for C sources