File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -86,15 +86,17 @@ MACRO(ADD_SIP_PYTHON_MODULE MODULE_NAME MODULE_SIP)
86
86
ENDFOREACH (CONCAT_NUM RANGE 0 ${SIP_CONCAT_PARTS} )
87
87
88
88
# Suppress warnings
89
- IF (MSVC AND PEDANTIC )
90
- # 4996 deprecation warnings (bindings re-export deprecated methods)
91
- # 4701 potentially uninitialized variable used (sip generated code)
92
- # 4702 unreachable code (sip generated code)
93
- ADD_DEFINITIONS ( /wd4996 /wd4701 /wd4702 )
94
- ELSE (MSVC )
95
- # disable all warnings
96
- ADD_DEFINITIONS ( -w )
97
- ENDIF (MSVC )
89
+ IF (PEDANTIC )
90
+ IF (MSVC )
91
+ # 4996 deprecation warnings (bindings re-export deprecated methods)
92
+ # 4701 potentially uninitialized variable used (sip generated code)
93
+ # 4702 unreachable code (sip generated code)
94
+ ADD_DEFINITIONS ( /wd4996 /wd4701 /wd4702 )
95
+ ELSE (MSVC )
96
+ # disable all warnings
97
+ ADD_DEFINITIONS ( -w )
98
+ ENDIF (MSVC )
99
+ ENDIF (PEDANTIC )
98
100
99
101
ADD_CUSTOM_COMMAND (
100
102
OUTPUT ${_sip_output_files}
You can’t perform that action at this time.
0 commit comments