summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/OSF1.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/OSF1.cmake')
-rw-r--r--Modules/Platform/OSF1.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/Platform/OSF1.cmake b/Modules/Platform/OSF1.cmake
index 2ca62b1..f31aac0 100644
--- a/Modules/Platform/OSF1.cmake
+++ b/Modules/Platform/OSF1.cmake
@@ -34,12 +34,12 @@ ELSE (CMAKE_COMPILER_IS_GNUCXX)
# use default OSF compiler flags
SET (CMAKE_C_FLAGS_INIT "")
SET (CMAKE_C_FLAGS_DEBUG_INIT "-g")
- SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-O2")
- SET (CMAKE_C_FLAGS_RELEASE_INIT "-O2")
+ SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-O2 -DNDEBUG")
+ SET (CMAKE_C_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2")
SET (CMAKE_CXX_FLAGS_INIT "")
SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
- SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O2")
- SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2")
+ SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O2 -DNDEBUG")
+ SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)