File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -75,17 +75,19 @@ endif()
75
75
#
76
76
#-----------------------------------------------------------------------------
77
77
if (MSVC )
78
- set (USUAL_COMPILE_OPTIONS "/Ox" )
78
+ set (DEV_COMPILE_OPTIONS "/Ox" )
79
+ set (RWD_COMPILE_OPTIONS "/Ox /DNDEBUG" )
79
80
else ()
80
- set (USUAL_COMPILE_OPTIONS "-O3 -g" )
81
+ set (DEV_COMPILE_OPTIONS "-O3 -g" )
82
+ set (RWD_COMPILE_OPTIONS "-O3 -g -DNDEBUG" )
81
83
endif ()
82
84
83
85
if (WIN32 )
84
86
add_definitions (-DWIN32 -D_WIN32 -DMSWIN32 -DBGDWIN32
85
87
-DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0600)
86
88
endif ()
87
89
88
- set (CMAKE_CXX_FLAGS_DEV "${USUAL_COMPILE_OPTIONS } "
90
+ set (CMAKE_CXX_FLAGS_DEV "${DEV_COMPILE_OPTIONS } "
89
91
CACHE STRING "Flags used by the compiler during developer builds."
90
92
FORCE)
91
93
@@ -97,7 +99,7 @@ mark_as_advanced(
97
99
CMAKE_EXE_LINKER_FLAGS_DEV
98
100
)
99
101
100
- set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${USUAL_COMPILE_OPTIONS } "
102
+ set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${RWD_COMPILE_OPTIONS } "
101
103
CACHE STRING "Flags used by the compiler during RELWITHDEBINFO builds."
102
104
FORCE)
103
105
You can’t perform that action at this time.
0 commit comments