Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Sep 8, 2023
1 parent a7bf0b4 commit 0b0effe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake_modules/FindMPI4PY.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# https://compacc.fnal.gov/projects/repositories/entry/synergia2/CMake/FindMPI4PY.cmake?rev=c147eafb60728606af4fe7b1b161a660df142e9a

if(NOT MPI4PY_INCLUDE_DIR)
if (NOT PYTHON_EXECUTABLE)
set(PYTHON_EXECUTABLE "python3")
endif(NOT PYTHON_EXECUTABLE)
execute_process(
COMMAND "${PYTHON_EXECUTABLE}" "-c" "import mpi4py; print(mpi4py.get_include())"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
Expand Down

0 comments on commit 0b0effe

Please sign in to comment.