Skip to content
Permalink
Browse files

fix sip macro change from r15197

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15200 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Feb 18, 2011
1 parent 8a7c8be commit de50f76d29f52a9a3b25a14d912b870c4a7e4f63
Showing with 11 additions and 9 deletions.
  1. +11 −9 cmake/SIPMacros.cmake
@@ -86,15 +86,17 @@ MACRO(ADD_SIP_PYTHON_MODULE MODULE_NAME MODULE_SIP)
ENDFOREACH(CONCAT_NUM RANGE 0 ${SIP_CONCAT_PARTS} )

# Suppress warnings
IF(MSVC AND PEDANTIC)
# 4996 deprecation warnings (bindings re-export deprecated methods)
# 4701 potentially uninitialized variable used (sip generated code)
# 4702 unreachable code (sip generated code)
ADD_DEFINITIONS( /wd4996 /wd4701 /wd4702 )
ELSE(MSVC)
# disable all warnings
ADD_DEFINITIONS( -w )
ENDIF(MSVC)
IF(PEDANTIC)
IF(MSVC)
# 4996 deprecation warnings (bindings re-export deprecated methods)
# 4701 potentially uninitialized variable used (sip generated code)
# 4702 unreachable code (sip generated code)
ADD_DEFINITIONS( /wd4996 /wd4701 /wd4702 )
ELSE(MSVC)
# disable all warnings
ADD_DEFINITIONS( -w )
ENDIF(MSVC)
ENDIF(PEDANTIC)

ADD_CUSTOM_COMMAND(
OUTPUT ${_sip_output_files}

0 comments on commit de50f76

Please sign in to comment.