Skip to content
Snippets Groups Projects
Commit 97e623a5 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

WRG: pass correct warning flag for msvc

parent fa5ca096
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,11 @@ if ( OTB_WRAP_PYTHON ) ...@@ -36,7 +36,11 @@ if ( OTB_WRAP_PYTHON )
OTBApplicationEngine) OTBApplicationEngine)
SWIG_add_module( otbApplication python otbApplication.i otbApplicationPYTHON_wrap.cxx itkPyCommand.cxx ) SWIG_add_module( otbApplication python otbApplication.i otbApplicationPYTHON_wrap.cxx itkPyCommand.cxx )
SWIG_link_libraries( otbApplication ${PYTHON_LIBRARIES} OTBApplicationEngine ) SWIG_link_libraries( otbApplication ${PYTHON_LIBRARIES} OTBApplicationEngine )
set_source_files_properties( ${CMAKE_CURRENT_BINARY_DIR}/otbApplicationPYTHON_wrap.cxx COMPILE_FLAGS "-w" ) if(MSVC)
set_source_files_properties( ${CMAKE_CURRENT_BINARY_DIR}/otbApplicationPYTHON_wrap.cxx COMPILE_FLAGS "/wd4005" )
else()
set_source_files_properties( ${CMAKE_CURRENT_BINARY_DIR}/otbApplicationPYTHON_wrap.cxx COMPILE_FLAGS "-w" )
endif()
# byte-compile the resulting python file # byte-compile the resulting python file
add_custom_command( add_custom_command(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment