diff options
author | Ye Luo <yeluo@anl.gov> | 2021-07-04 19:44:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-07 13:51:01 (GMT) |
commit | 0c1b9b3516b52b02497b83d41294941c6210f29b (patch) | |
tree | babfd81759ce10d91d1c32f4c098c87b96bc96fc /Modules/FindMPI.cmake | |
parent | 900617f977d35556de1d2b7e8fb0e7db750aac63 (diff) | |
download | CMake-0c1b9b3516b52b02497b83d41294941c6210f29b.zip CMake-0c1b9b3516b52b02497b83d41294941c6210f29b.tar.gz CMake-0c1b9b3516b52b02497b83d41294941c6210f29b.tar.bz2 |
FindMPI: Choose definitions for MPI_CXX_SKIP_MPICXX before first use
Fixes: #22391
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 c48decb..744f5a9 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -1443,6 +1443,7 @@ foreach(LANG IN ITEMS C CXX Fortran) set(MPI_CXX_SKIP_MPICXX FALSE CACHE BOOL "If true, the MPI-2 C++ bindings are disabled using definitions.") 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}) |