diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2012-08-16 02:00:45 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2012-08-16 02:00:45 (GMT) |
commit | 0ddfc51f6a68c61d84b5b4818b32ecbf755a949a (patch) | |
tree | bde52394835d76b630cc8b751c16f1ba572c2bce /Modules/Compiler/SunPro-CXX.cmake | |
parent | addefc2ae3b33a75a7152730146b46b319118a24 (diff) | |
download | CMake-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/SunPro-CXX.cmake')
-rw-r--r-- | Modules/Compiler/SunPro-CXX.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/SunPro-CXX.cmake b/Modules/Compiler/SunPro-CXX.cmake index af31c7b..5968712 100644 --- a/Modules/Compiler/SunPro-CXX.cmake +++ b/Modules/Compiler/SunPro-CXX.cmake @@ -12,7 +12,7 @@ set(CMAKE_CXX_FLAGS_INIT "") set(CMAKE_CXX_FLAGS_DEBUG_INIT "-g") set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-xO2 -xspace -DNDEBUG") set(CMAKE_CXX_FLAGS_RELEASE_INIT "-xO3 -DNDEBUG") -set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g -xO2") +set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g -xO2 -DNDEBUG") # Initialize C link type selection flags. These flags are used when # building a shared library, shared module, or executable that links |