We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d585b commit d6e797aCopy full SHA for d6e797a
src/mpi/CMakeLists.txt
@@ -82,14 +82,15 @@ else()
82
endif()
83
84
set(MPI_HEADERS mpi.h)
85
-CHECK_INCLUDE_FILE("mpi-ext.h" HAVE_MPI_EXT)
+include(CheckIncludeFiles)
86
+CHECK_INCLUDE_FILES("mpi.h;mpi-ext.h" HAVE_MPI_EXT)
87
if(HAVE_MPI_EXT)
88
add_definitions(-DHAVE_MPI_EXT_H)
89
set(MPI_HEADERS ${MPI_HEADERS};mpi-ext.h)
90
91
92
foreach(symbol ${NEEDED_SYMBOLS})
- CHECK_SYMBOL_EXISTS(${symbol} ${MPI_HEADERS} HAVE_${symbol})
93
+ CHECK_SYMBOL_EXISTS(${symbol} "${MPI_HEADERS}" HAVE_${symbol})
94
if(NOT HAVE_${symbol})
95
message( STATUS "\${HAVE_${symbol}} = ${HAVE_${symbol}}")
96
message( WARNING "Disabling Failed Image support due to lack of support in the current MPI implementation.")
0 commit comments