diff options
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) |