summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Intel-CXX.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2012-08-16 02:00:45 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2012-08-16 02:00:45 (GMT)
commit0ddfc51f6a68c61d84b5b4818b32ecbf755a949a (patch)
treebde52394835d76b630cc8b751c16f1ba572c2bce /Modules/Compiler/Intel-CXX.cmake
parentaddefc2ae3b33a75a7152730146b46b319118a24 (diff)
downloadCMake-0ddfc51f6a68c61d84b5b4818b32ecbf755a949a.zip
CMake-0ddfc51f6a68c61d84b5b4818b32ecbf755a949a.tar.gz
CMake-0ddfc51f6a68c61d84b5b4818b32ecbf755a949a.tar.bz2
Add -DNDEBUG to RelWithDebInfo flags where where Release flags had it.
Previously, it was inconsistent in that some platforms/compilers had this flag for the RelWithDebInfo configuration and some didn't. This fixes issue #11366.
Diffstat (limited to 'Modules/Compiler/Intel-CXX.cmake')
-rw-r--r--Modules/Compiler/Intel-CXX.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Intel-CXX.cmake b/Modules/Compiler/Intel-CXX.cmake
index 354bb17..ae6021a 100644
--- a/Modules/Compiler/Intel-CXX.cmake
+++ b/Modules/Compiler/Intel-CXX.cmake
@@ -4,7 +4,7 @@ set(CMAKE_CXX_FLAGS_INIT "")
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
-set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
+set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g -DNDEBUG")
set(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
set(CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")