summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-02-16 18:38:10 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-02-16 18:44:17 +0100
commit9773bff74aa09637c11dc0ca65ad4cf18f308fe8 (patch)
tree7182d488a21216fff13faffb4fd5cf6c9abf3d39
parentff0a87b2f0abc3b86627cabd873f076b1cfca6d8 (diff)
downloadcmake-9773bff74aa09637c11dc0ca65ad4cf18f308fe8.tar.gz
cmake-9773bff74aa09637c11dc0ca65ad4cf18f308fe8.zip
Add compiler flags according to build typev3.5.13.2
(cherry picked from commit d53ac2db87e84aff35dd619566c005e90d4fec02)
-rw-r--r--modules/FindTQt.cmake4
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" )