You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#If we're using mpicc, we don't need to worry about the includes.
2
+
if("${CMAKE_C_COMPILER}"MATCHES".*/?mpic")
3
+
return()
4
+
endif()
5
+
6
+
include(CheckIncludeFile)
7
+
set(CMAKE_REQUIRED_QUIET ON)
8
+
check_include_file("mpi.h" MPI_HEADER_CLASH)
9
+
set(CMAKE_REQUIRED_QUIET OFF)
10
+
11
+
if(${MPI_HEADER_CLASH})
12
+
if(TARGET fenix)
13
+
message(WARNING "Fenix detected system MPI headers, attempting to force use of ${MPI_C_INCLUDE_DIRS}. Disable FENIX_PROPAGATE_INC_FIX to stop this behavior.")
14
+
else()
15
+
message(WARNING "Detected system MPI headers, attempting to force use of ${MPI_C_INCLUDE_DIRS}. Disable FENIX_SYSTEM_INC_FIX to stop this behavior.")
0 commit comments