aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorAlbert Ziegenhagel <albert.ziegenhagel@outlook.com>2020-08-28 07:28:30 +0200
committerGitHub <noreply@github.com>2020-08-27 22:28:30 -0700
commit940d1dc707f817ac6c392e054b2775c4462dd525 (patch)
tree908d904a5dfcfc008aababcec6108bf8903ca97f /ports
parent53a47bca4f5574bc3c7630d8e07b1fc8f580165f (diff)
downloadvcpkg-940d1dc707f817ac6c392e054b2775c4462dd525.tar.gz
vcpkg-940d1dc707f817ac6c392e054b2775c4462dd525.zip
[vtk] Fix building with MPI and Python enabled (#12971)
Diffstat (limited to 'ports')
-rw-r--r--ports/vtk/portfile.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/vtk/portfile.cmake b/ports/vtk/portfile.cmake
index 65011a3a4..d2dc3e2c7 100644
--- a/ports/vtk/portfile.cmake
+++ b/ports/vtk/portfile.cmake
@@ -68,6 +68,13 @@ endif()
if("mpi" IN_LIST FEATURES)
list(APPEND ADDITIONAL_OPTIONS
-DVTK_GROUP_ENABLE_MPI=YES
+ -DVTK_USE_MPI=YES
+ )
+endif()
+
+if("mpi" IN_LIST FEATURES AND "python" IN_LIST FEATURES)
+ list(APPEND ADDITIONAL_OPTIONS
+ -DVTK_MODULE_USE_EXTERNAL_VTK_mpi4py=OFF
)
endif()