From: malaterre Date: Fri, 3 Dec 2004 17:54:51 +0000 (+0000) Subject: ENH: Get rid of -Wall / -W / -pedantic if present this should get rid of the warnings... X-Git-Tag: Version1.0.bp~542 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=aa0fc6ed66dc186bae363418702f402dc3f0ea21;p=gdcm.git ENH: Get rid of -Wall / -W / -pedantic if present this should get rid of the warnings produced by SWIG --- diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index 9622d80e..04a30511 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -36,6 +36,15 @@ IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.9) SET_SOURCE_FILES_PROPERTIES(gdcm.i PROPERTIES SWIG_FLAGS "") SWIG_ADD_MODULE(gdcm python gdcm.i) #gdcm_wrap.cxx SWIG_LINK_LIBRARIES(gdcm gdcm ${PYTHON_LIBRARIES}) + + SET(GDCM_CXX_FLAGS ${CMAKE_SWIG_FLAGS}) + # Get rid of -Wall / -W / -pedantic if exist + SET(CMAKE_CXX_FLAGS "") + # I guess I need to put them back on the this file: + SET_SOURCE_FILES_PROPERTIES(${GDCM_BINARY_DIR}/gdcmPython/gdcm_wrap.cxx + PROPERTIES COMPILE_FLAGS "") +# SET_TARGET_PROPERTIES(${GDCM_BINARY_DIR}/gdcmPython/gdcm_wrap.cxx +# PROPERTIES CMAKE_CXX_FLAGS "-foo") ELSE(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.9)