From 7d0121fc7983322b5e34eec449b74a55e21a1678 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Fri, 10 May 2013 16:39:52 -0700 Subject: cmake: GCC strips binaries unless build type is specified --- host/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index c7332e3a2..cdcfc6529 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -84,6 +84,9 @@ 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") ADD_DEFINITIONS(-Wall) ADD_DEFINITIONS(-Wextra) ADD_DEFINITIONS(-Wsign-compare) -- cgit v1.2.3