Commit b144b688 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkpython: avoid vtkpythonrc hack in Visual Studio

It handles response files itself.

Change-Id: Icf50178289028a0c56dcb89bbb0db7044b571d9a
parent 4ebafa92
......@@ -8,8 +8,11 @@ if (WIN32)
# used here.
add_library(vtkpythonrc STATIC dummy.cxx vtkpython.rc)
return()
elseif (CMAKE_GENERATOR MATCHES "Visual Studio")
set(extra_srcs vtkpython.rc)
else ()
set(building_vtkpythonrc TRUE)
set(extra_links vtkpythonrc)
# Make a separate directory scope for building vtkpythonrc.
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/vtkpythonrc")
endif ()
......@@ -70,10 +73,10 @@ vtk_write_python_modules_header_for_wrapped_modules(
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkPythonAppInitConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkPythonAppInitConfigure.h)
add_executable(vtkpython vtkPythonAppInit.cxx)
add_executable(vtkpython vtkPythonAppInit.cxx ${extra_srcs})
if (WIN32)
target_link_libraries(vtkpython vtkpythonrc)
target_link_libraries(vtkpython ${extra_links})
endif ()
unset(VTKPYTHON_LINK_FLAGS)
......
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