Rename vtkpython to vtkpython-9.0
authorAnton Gladky <gladk@debian.org>
Sun, 13 Dec 2020 11:55:42 +0000 (11:55 +0000)
committerAnton Gladky <gladk@debian.org>
Sun, 13 Dec 2020 11:55:42 +0000 (11:55 +0000)
Last-Update: 2020-11-05

Gbp-Pq: Name 40_vtkpython-9.patch

Wrapping/Python/CMakeLists.txt

index 441fccb04e1c0debac3dca1d22da724ee5e5eff3..c155368fca9dac3d531b4c82cefc1a3aa4fa5e2f 100644 (file)
@@ -23,21 +23,21 @@ endif ()
 
 # The interpreters are not supported in wheel builds, so skip them.
 if (NOT VTK_WHEEL_BUILD)
-  add_executable(vtkpython
+  add_executable(vtkpython-9.0
     vtkpython.rc
     vtkPythonAppInit.cxx)
-  target_link_libraries(vtkpython
+  target_link_libraries(vtkpython-9.0
     PRIVATE
       VTK::WrappingPythonCore
       VTK::PythonInterpreter
       VTK::Python
       VTK::vtkpythonmodules
       VTK::vtksys)
-  add_executable(VTK::vtkpython ALIAS vtkpython)
+  add_executable(VTK::vtkpython-9.0 ALIAS vtkpython-9.0)
   if (VTK_INSTALL_PYTHON_EXES)
     install(
-      TARGETS     vtkpython
-      EXPORT      VTKPython
+      TARGETS     vtkpython-9.0
+      EXPORT      VTK9Python
       DESTINATION "${CMAKE_INSTALL_BINDIR}")
   endif ()