From 0b0effe13c5b3dd89e77c37f21e450584921853c Mon Sep 17 00:00:00 2001 From: Pierre Marchand Date: Fri, 8 Sep 2023 15:12:40 +0000 Subject: [PATCH] update --- cmake_modules/FindMPI4PY.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake_modules/FindMPI4PY.cmake b/cmake_modules/FindMPI4PY.cmake index 051c048..6ac4af6 100644 --- a/cmake_modules/FindMPI4PY.cmake +++ b/cmake_modules/FindMPI4PY.cmake @@ -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}