diff options
author | Brad King <brad.king@kitware.com> | 2021-07-08 11:57:21 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-07-08 11:57:28 (GMT) |
commit | dad3a178a41efc2baa25fcb260a12991cdc94fef (patch) | |
tree | ba0c65869a25a5174e1620a6f89848f2097c096a /Modules/FindMPI.cmake | |
parent | fc0a74145d34e785915bbbd30f6b84a63c204fd0 (diff) | |
parent | 0c1b9b3516b52b02497b83d41294941c6210f29b (diff) | |
download | CMake-dad3a178a41efc2baa25fcb260a12991cdc94fef.zip CMake-dad3a178a41efc2baa25fcb260a12991cdc94fef.tar.gz CMake-dad3a178a41efc2baa25fcb260a12991cdc94fef.tar.bz2 |
Merge topic 'FindMPI-adjust-compile-definitions-early'
0c1b9b3516 FindMPI: Choose definitions for MPI_CXX_SKIP_MPICXX before first use
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6303
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r-- | Modules/FindMPI.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 43fdace..0b0d2d3 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -1443,6 +1443,7 @@ foreach(LANG IN ITEMS C CXX Fortran) option(MPI_CXX_SKIP_MPICXX "If true, the MPI-2 C++ bindings are disabled using definitions." FALSE) mark_as_advanced(MPI_CXX_SKIP_MPICXX) endif() + _MPI_adjust_compile_definitions(${LANG}) if(NOT (MPI_${LANG}_LIB_NAMES AND (MPI_${LANG}_INCLUDE_PATH OR MPI_${LANG}_INCLUDE_DIRS OR MPI_${LANG}_COMPILER_INCLUDE_DIRS))) set(MPI_${LANG}_TRIED_IMPLICIT FALSE) set(MPI_${LANG}_WORKS_IMPLICIT FALSE) @@ -1547,7 +1548,6 @@ foreach(LANG IN ITEMS C CXX Fortran) endif() _MPI_assemble_libraries(${LANG}) - _MPI_adjust_compile_definitions(${LANG}) # We always create imported targets even if they're empty _MPI_create_imported_target(${LANG}) |