Commit 0e29a387 authored by Ben Boeckel's avatar Ben Boeckel

cmake: prefer find_path for finding files

parent 5e0646b5
......@@ -78,7 +78,9 @@ if(XDMF_BUILD_DSM)
endif()
option(XDMF_BUILD_DSM_THREADS ON)
if (XDMF_WRAP_PYTHON)
set(PYTHON_INCLUDE_MPI4PY_DIR "" CACHE STRING "Directory containing mpi4py/mpi4py.i")
find_path(PYTHON_INCLUDE_MPI4PY_DIR
NAMES mpi4py/mpi4py.i
DOC "Directory containing the mpi4py/mpi4py.i file")
endif ()
add_definitions(-DXDMF_BUILD_DSM)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment