Skip to content
Snippets Groups Projects
Commit 8ce0fa2c authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cmake: move VTK_WINDOWS_PYTHON_DEBUGGABLE option to VTK

And add documentation.
parent 1b00e5ef
No related branches found
No related tags found
No related merge requests found
......@@ -371,6 +371,9 @@ if (VTK_WRAP_PYTHON)
"${vtk_required_python_modules}\n")
get_property(vtk_soabi GLOBAL
PROPERTY _vtk_python_soabi)
cmake_dependent_option(VTK_WINDOWS_PYTHON_DEBUGGABLE "Append `_d` to Python module names" OFF
"WIN32;VTK_WRAP_PYTHON" OFF)
mark_as_advanced(VTK_WINDOWS_PYTHON_DEBUGGABLE)
vtk_module_wrap_python(
MODULES ${vtk_modules}
INSTALL_EXPORT VTKPython
......@@ -380,6 +383,7 @@ if (VTK_WRAP_PYTHON)
CMAKE_DESTINATION "${vtk_cmake_destination}"
INSTALL_HEADERS "${VTK_INSTALL_SDK}"
SOABI "${vtk_soabi}"
USE_DEBUG_SUFFIX "${VTK_WINDOWS_PYTHON_DEBUGGABLE}"
WRAPPED_MODULES vtk_python_wrapped_modules
TARGET_SPECIFIC_COMPONENTS "${VTK_TARGET_SPECIFIC_COMPONENTS}"
TARGET VTK::vtkpythonmodules)
......
......@@ -220,6 +220,8 @@ More advanced options:
* `VTK_SERIAL_TESTS_USE_MPIEXEC` (default `OFF`): Used on HPC to run
serial tests on compute nodes. If set, it prefixes serial tests with
"${MPIEXEC_EXECUTABLE}" "${MPIEXEC_NUMPROC_FLAG}" "1" ${MPIEXEC_PREFLAGS}
* `VTK_WINDOWS_PYTHON_DEBUGGABLE` (default `OFF`): Set to `ON` if using a
debug build of Python.
The VTK module system provides a number of variables to control modules which
are not otherwise controlled by the other options provided.
......
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