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

Findmpi4py: use the new Python find modules

parent 2a953609
No related branches found
No related tags found
No related merge requests found
include(CMakeFindDependencyMacro)
find_dependency(PythonInterp)
find_dependency("Python${VTK_PYTHON_VERSION}" COMPONENTS Interpreter)
execute_process(
COMMAND "${PYTHON_EXECUTABLE}" -c
COMMAND "${Python${VTK_PYTHON_VERSION}_EXECUTABLE}" -c
"import mpi4py"
OUTPUT_VARIABLE _mpi4py_out
ERROR_VARIABLE _mpi4py_out
......@@ -12,7 +12,7 @@ endif ()
if (NOT mpi4py_INCLUDE_DIR OR NOT EXISTS "${mpi4py_INCLUDE_DIR}")
execute_process(
COMMAND "${PYTHON_EXECUTABLE}" -c
COMMAND "${Python${VTK_PYTHON_VERSION}_EXECUTABLE}" -c
"import mpi4py; print(mpi4py.get_include())"
OUTPUT_VARIABLE _mpi4py_INCLUDE_DIR
RESULT_VARIABLE _mpi4py_include_dir_res
......
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