mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 15:39:00 +08:00
3efae11c36
closes #36801 closes #36253 closes #36044 ~~includes #24327 to fix dlib linkage in the osx pipelines.~~ Need to look at ~~#36044~~ ~~#36345~~ merge after - [x] #37561 --------- Co-authored-by: Alexander Neumann <you@example.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 1b9fd80..94ad133 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -557,7 +557,16 @@ if (PARAVIEW_USE_EXTERNAL_VTK)
|
|
endforeach()
|
|
endmacro()
|
|
search_dependent_targets(${vtk_modules})
|
|
- find_package(VTK CONFIG REQUIRED COMPONENTS "${vtk_components}")
|
|
+
|
|
+ if (PARAVIEW_USE_PYTHON)
|
|
+ get_target_property(vtk_python_modules VTK::vtkpythonmodules "INTERFACE_LINK_LIBRARIES")
|
|
+ list(TRANSFORM vtk_python_modules REPLACE "Python$" "" OUTPUT_VARIABLE vtk_modules_wrapped)
|
|
+ list(TRANSFORM vtk_modules_wrapped REPLACE "^VTK::vtk" "" OUTPUT_VARIABLE vtk_components_wrapped)
|
|
+ list(APPEND vtk_components ${vtk_components_wrapped})
|
|
+ list(REMOVE_DUPLICATES vtk_components)
|
|
+ endif()
|
|
+
|
|
+ find_package(VTK CONFIG REQUIRED COMPONENTS "${vtk_components}")
|
|
if (PARAVIEW_USE_PYTHON)
|
|
find_package(Python3 3.3 QUIET REQUIRED COMPONENTS Interpreter)
|
|
set(PYTHON_VERSION_MAJOR "${Python3_VERSION_MAJOR}")
|
|
diff --git a/Qt/Python/vtk.module b/Qt/Python/vtk.module
|
|
index f82f076..86dbafd 100644
|
|
--- a/Qt/Python/vtk.module
|
|
+++ b/Qt/Python/vtk.module
|
|
@@ -12,7 +12,7 @@ GROUPS
|
|
PARAVIEW_CANONICAL
|
|
DEPENDS
|
|
ParaView::pqCore
|
|
- ParaView::PythonInitializer
|
|
+ #ParaView::PythonInitializer <- Creates a cycle
|
|
VTK::PythonInterpreter
|
|
VTK::WrappingPythonCore
|
|
TEST_LABELS
|