Skip to content
Snippets Groups Projects
Commit dad3a178 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'FindMPI-adjust-compile-definitions-early'


0c1b9b35 FindMPI: Choose definitions for MPI_CXX_SKIP_MPICXX before first use

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !6303
parents fc0a7414 0c1b9b35
Branches
No related tags found
No related merge requests found
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment