diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-02-16 18:38:10 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-02-16 18:38:10 +0100 |
commit | d53ac2db87e84aff35dd619566c005e90d4fec02 (patch) | |
tree | 6d98c04326f91c272bd42608121f421dc9299156 | |
parent | b928573e551a0832b17cfd2ce0580fa1fc46a6a2 (diff) | |
download | tde-cmake-d53ac2db87e84aff35dd619566c005e90d4fec02.tar.gz tde-cmake-d53ac2db87e84aff35dd619566c005e90d4fec02.zip |
Add compiler flags according to build type
-rw-r--r-- | modules/FindTQt.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/FindTQt.cmake b/modules/FindTQt.cmake index 889a84c..c82ab95 100644 --- a/modules/FindTQt.cmake +++ b/modules/FindTQt.cmake @@ -89,3 +89,7 @@ tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES ) foreach( _flag ${TQT_CFLAGS} ${TQT_CFLAGS_OTHER} ) set( TQT_CXX_FLAGS "${TQT_CXX_FLAGS} ${_flag}" ) endforeach() + +# Set compiler flags according to build type +set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "-DNDEBUG" ) +set( CMAKE_C_FLAGS_RELWITHDEBINFO "-DNDEBUG" ) |