Skip to content

Commit

Permalink
add REQUIRED_HEADERS for TriBITS MPI TPL
Browse files Browse the repository at this point in the history
this is required to
fix TriBITSPub/TriBITS#534
  • Loading branch information
ibaned committed Oct 21, 2022
1 parent 49de2e9 commit e49070d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/tribits/core/std_tpls/FindTPLMPI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ if(WIN32 AND TPL_ENABLE_MPI)
global_set(TPL_MPI_LIBRARIES ${MPI_LIBRARIES})
endif()

tribits_tpl_find_include_dirs_and_libraries(MPI)
tribits_tpl_find_include_dirs_and_libraries(
MPI
REQUIRED_HEADERS mpi.h)

# NOTE: Above, we need to generate the MPI::all_libs target and the
# MPIConfig.cmake file that will also provide the MPI::all_libs target.

0 comments on commit e49070d

Please sign in to comment.