[vtk] Fix building with MPI and Python enabled (#12971)

This commit is contained in:
Albert Ziegenhagel 2020-08-28 07:28:30 +02:00 committed by GitHub
parent 53a47bca4f
commit 940d1dc707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()