Toolchain: Add support for enabling "CP2K_USE_MPI_F08" when generating CMake options

This commit is contained in:
SY Wang 2026-01-28 22:40:08 +08:00 committed by Ole Schütt
parent 35340893dd
commit 6d8a8e2a96

View file

@ -35,6 +35,9 @@ else
# If MPI is used, set "CP2K_USE_MPI" to "ON"
if [ "${MPI_MODE}" != "no" ]; then
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCP2K_USE_MPI=ON"
if [ -n $(grep "IF_MPI(-D__MPI_F08|)" "${INSTALLDIR}"/toolchain.conf) ]; then
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCP2K_USE_MPI_F08=ON"
fi
fi
# If GPU acceleration is used, add the option about GPU acceleration
if [ "${ENABLE_CUDA}" = "__TRUE__" ]; then