summaryrefslogtreecommitdiffstats
path: root/host/CMakeLists.txt
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-12-13 09:52:28 -0800
committerNicholas Corgan <nick.corgan@ettus.com>2013-12-13 09:52:28 -0800
commit937a689ab3170bcec7a9f45dfebc17264b11838e (patch)
treedb94fb292bf1fa725488118dda45c7d39ca7fd07 /host/CMakeLists.txt
parent8a68ce1438f7e121bff07ccbfde83b7b72a57aee (diff)
parent6dec90c52c18489d6f10a94ef7b59339f2655f00 (diff)
downloaduhd-937a689ab3170bcec7a9f45dfebc17264b11838e.tar.gz
uhd-937a689ab3170bcec7a9f45dfebc17264b11838e.tar.bz2
uhd-937a689ab3170bcec7a9f45dfebc17264b11838e.zip
Merge branch 'uhd/no_default_strip'
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r--host/CMakeLists.txt8
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)