diff --git a/Modules/Simulation/CMakeLists.txt b/Modules/Simulation/CMakeLists.txt index 36dee10c8c..5fb39fad9f 100644 --- a/Modules/Simulation/CMakeLists.txt +++ b/Modules/Simulation/CMakeLists.txt @@ -1,10 +1,10 @@ MITK_CREATE_MODULE( DEPENDS MitkSceneSerializationBase PACKAGE_DEPENDS PUBLIC SOFA Boost PRIVATE GLUT GLEW ) if(TARGET ${MODULE_TARGET}) - target_compile_options(${MODULE_TARGET} PRIVATE "$<$:/wd4068 /wd4250 /wd4251 /wd4267 /wd4275>") + target_compile_options(${MODULE_TARGET} PUBLIC "$<$:/wd4068;/wd4250;/wd4251;/wd4267;/wd4275>") endif() diff --git a/Plugins/org.mitk.gui.qt.simulation/CMakeLists.txt b/Plugins/org.mitk.gui.qt.simulation/CMakeLists.txt index 7eef273ffb..a4b3d17818 100644 --- a/Plugins/org.mitk.gui.qt.simulation/CMakeLists.txt +++ b/Plugins/org.mitk.gui.qt.simulation/CMakeLists.txt @@ -1,11 +1,7 @@ project(org_mitk_gui_qt_simulation) MACRO_CREATE_MITK_CTK_PLUGIN( EXPORT_DIRECTIVE SIMULATION_EXPORT EXPORTED_INCLUDE_SUFFIXES src MODULE_DEPENDS MitkQtWidgets MitkSimulation ) - -if(MSVC) - set_property(TARGET ${PLUGIN_TARGET} APPEND_STRING PROPERTY COMPILE_FLAGS " /wd4068 /wd4250 /wd4251 /wd4267 /wd4275") -endif() diff --git a/Plugins/org.mitk.simulation/CMakeLists.txt b/Plugins/org.mitk.simulation/CMakeLists.txt index 0aeea0060e..b9da98b89c 100644 --- a/Plugins/org.mitk.simulation/CMakeLists.txt +++ b/Plugins/org.mitk.simulation/CMakeLists.txt @@ -1,11 +1,7 @@ project(org_mitk_simulation) MACRO_CREATE_MITK_CTK_PLUGIN( EXPORT_DIRECTIVE SIMULATION_INIT_EXPORT EXPORTED_INCLUDE_SUFFIXES src MODULE_DEPENDS MitkQtWidgets MitkSimulation ) - -if(MSVC) - set_property(TARGET ${PLUGIN_TARGET} APPEND_STRING PROPERTY COMPILE_FLAGS " /wd4068 /wd4250 /wd4251 /wd4267 /wd4275") -endif()