diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2013-12-09 08:25:15 -0800 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2013-12-09 08:30:52 -0800 |
commit | 6dec90c52c18489d6f10a94ef7b59339f2655f00 (patch) | |
tree | d1d50885794454247c6072293fb13e4077938c23 /host/CMakeLists.txt | |
parent | 8f0f045cdac16ae84bc446b230beb2b651428294 (diff) | |
download | uhd-6dec90c52c18489d6f10a94ef7b59339f2655f00.tar.gz uhd-6dec90c52c18489d6f10a94ef7b59339f2655f00.tar.bz2 uhd-6dec90c52c18489d6f10a94ef7b59339f2655f00.zip |
cmake: removed binary-stripping from default GCC build behavior
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r-- | host/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 103266edd..0c7a59fed 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -84,9 +84,11 @@ SET(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING "") SET(UHD_RELEASE_MODE "${UHD_RELEASE_MODE}" CACHE STRING "UHD Release Mode") IF(CMAKE_COMPILER_IS_GNUCXX) - IF(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s") - ENDIF(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") + IF(STRIP_BINARIES) + IF(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s") + ENDIF(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") + ENDIF(STRIP_BINARIES) ADD_DEFINITIONS(-Wall) ADD_DEFINITIONS(-Wextra) ADD_DEFINITIONS(-Wsign-compare) |