Skip to content

Commit

Permalink
Have TPL MPI produce MPI::all_libs and MPIConfig.cmake (TriBITSPub#299)
Browse files Browse the repository at this point in the history
This avoids needing to check `if (TARGET <Pkg>::all_libs)` all over the place.

This makes the failing test:

  TriBITS_TribitsOldSimpleExampleApp_STATIC_MPI_USE_DEPRECATED_TARGETS

from the previous commit pass.

Next, we can take out all of these silly checks.
  • Loading branch information
bartlettroscoe committed May 28, 2022
1 parent 4051847 commit 9206994
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tribits/core/std_tpls/FindTPLMPI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ if(WIN32 AND TPL_ENABLE_MPI)
global_set(TPL_MPI_LIBRARIES ${MPI_LIBRARIES})
endif()

tribits_tpl_find_include_dirs_and_libraries(MPI)

# 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 9206994

Please sign in to comment.