diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-02-27 14:13:42 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-02-27 14:13:42 +0100 |
commit | 2bd4c7fa781b660d292963e0e2a2d68d2bbc255c (patch) | |
tree | 6802c276cf327cc1c115810a7e091aad476abd72 | |
parent | 008e6589df95ac928271cec1ad8b8b544dd0e843 (diff) | |
download | tdesvn-2bd4c7fa781b660d292963e0e2a2d68d2bbc255c.tar.gz tdesvn-2bd4c7fa781b660d292963e0e2a2d68d2bbc255c.zip |
Use -DNDEBUG for build type RelWithDebInfo
-rw-r--r-- | cmakemodules/FindKdeLibs.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmakemodules/FindKdeLibs.cmake b/cmakemodules/FindKdeLibs.cmake index 796304a..81107ac 100644 --- a/cmakemodules/FindKdeLibs.cmake +++ b/cmakemodules/FindKdeLibs.cmake @@ -245,6 +245,9 @@ IF(KDE3_FOUND) #SET(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc") ENDIF(KDE3_FOUND) +# Set compiler flags according to build type +set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "-DNDEBUG" ) +set( CMAKE_C_FLAGS_RELWITHDEBINFO "-DNDEBUG" ) # KDE3Macros.cmake contains all the KDE specific macros INCLUDE(KDE3Macros) |