File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,15 @@ if(WIN32)
100
100
# The flag JSBSIM_EXPORT must be declared PRIVATE to avoid propagating it
101
101
# to other targets such as the executable, the Python module and the unit
102
102
# tests. Otherwise the linking of these targets will fail.
103
- target_compile_definitions (libJSBSim PRIVATE JSBSIM_EXPORT )
103
+ target_compile_definitions (libJSBSim PRIVATE
104
+ JSBSIM_EXPORT
105
+ $< $< CONFIG:Release> :NDEBUG>
106
+ $< $< CONFIG:RelWithDebInfo> :NDEBUG> )
104
107
foreach (TARGET_OBJECT ${TARGET_OBJECTS_LIST} )
105
- target_compile_definitions (${TARGET_OBJECT} PRIVATE JSBSIM_EXPORT )
108
+ target_compile_definitions (${TARGET_OBJECT} PRIVATE
109
+ JSBSIM_EXPORT
110
+ $< $< CONFIG:Release> :NDEBUG>
111
+ $< $< CONFIG:RelWithDebInfo> :NDEBUG> )
106
112
endforeach (TARGET_OBJECT )
107
113
else ()
108
114
list (APPEND MSVC_COMPILE_DEFINITIONS JSBSIM_STATIC_LINK )
You can’t perform that action at this time.
0 commit comments