Skip to content

Commit ff404a9

Browse files
author
jef
committedFeb 18, 2011
fix sip macro change from r15197
git-svn-id: http://svn.osgeo.org/qgis/trunk@15200 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ea1ebcd commit ff404a9

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed
 

‎cmake/SIPMacros.cmake

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,17 @@ MACRO(ADD_SIP_PYTHON_MODULE MODULE_NAME MODULE_SIP)
8686
ENDFOREACH(CONCAT_NUM RANGE 0 ${SIP_CONCAT_PARTS} )
8787

8888
# 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)
98100

99101
ADD_CUSTOM_COMMAND(
100102
OUTPUT ${_sip_output_files}

0 commit comments

Comments
 (0)
Please sign in to comment.