Commit 5ddf7028 authored by Dan Lipsa's avatar Dan Lipsa
Browse files

BUG: Fix link warnings for static build on windows.

parent 18348a6d
......@@ -65,6 +65,11 @@ function(vtk_add_python_wrapping module_name)
target_link_libraries(${module_name}PythonD LINK_PUBLIC ${module_name}
vtkWrappingPythonCore ${extra_links} ${VTK_PYTHON_LIBRARIES})
if (MSVC)
set_target_properties(${module_name}PythonD
PROPERTIES STATIC_LIBRARY_FLAGS ${CMAKE_MODULE_LINKER_FLAGS})
endif()
_vtk_add_python_module(${module_name}Python ${module_name}PythonInit.cxx)
target_link_libraries(${module_name}Python ${module_name}PythonD)
if(CMAKE_HAS_TARGET_INCLUDES)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment