Skip to content

Commit

Permalink
Fix building on Windows during CI, I think?
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeekman committed Dec 19, 2023
1 parent 66f188c commit ba417f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -281,21 +281,23 @@ if(WIN32) # Only support building with GCC & GFortran using Intel MPI (OneAPI)
set( MPI_ASSUME_NO_BUILTIN_MPI TRUE )
set( MPI_CXX_SKIP_MPICXX TRUE )
cmake_path(SET MPI_ROOT NORMALIZE "$ENV{I_MPI_ROOT}")
set (IMPI_LIB_DIR "${MPI_ROOT}/lib/${IMPI_BUILD}")
set (IMPI_DLL_DIR "${MPI_ROOT}/bin/${IMPI_BUILD}")
set (IMPI_LIB_DIR "${MPI_ROOT}/lib")
set (IMPI_DLL_DIR "${MPI_ROOT}/bin")

message(STATUS "Looking in IMPI_LIB_DIR=${IMPI_LIB_DIR}")
message(STATUS "Looking in IMPI_DLL_DIR=${IMPI_DLL_DIR}")
find_library(IMPI_LIB
"impi.lib"
HINTS "${IMPI_LIB_DIR}"
PATH_SUFFIXES "${IMPI_BUILD}"
DOC "Location of the Intel MPI impi.lib file"
REQUIRED
NO_DEFAULT_PATH)

find_file(IMPI_DLL
"impi.dll"
HINTS "${IMPI_DLL_DIR}"
PATH_SUFFIXES "${IMPI_BUILD}"
DOC "Location of the Intel MPI impi.dll file"
REQUIRED
NO_DEFAULT_PATH)
Expand Down

0 comments on commit ba417f5

Please sign in to comment.