diff options
author | Brad King <brad.king@kitware.com> | 2019-07-26 11:11:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-07-26 11:12:08 (GMT) |
commit | f54c9f6cc39e805dfd62aae255c4870da312de19 (patch) | |
tree | 2241b069f7a3e923a92d7d16d5da0e177411c416 | |
parent | 7feece688d6115601937f4bde7727df70ebea15b (diff) | |
parent | cf04da7e702014c7cc163dd4a78bccdeff813210 (diff) | |
download | CMake-f54c9f6cc39e805dfd62aae255c4870da312de19.zip CMake-f54c9f6cc39e805dfd62aae255c4870da312de19.tar.gz CMake-f54c9f6cc39e805dfd62aae255c4870da312de19.tar.bz2 |
Merge topic 'FindMPI-link-flags'
cf04da7e70 FindMPI: make sure computed link flags are not de-duplicated
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: Ben Boeckel <ben.boeckel@kitware.com>
Tested-by: Robert Maynard <robert.maynard@kitware.com>
Acked-by: Axel Huebl <axel.huebl@plasma.ninja>
Merge-request: !3605
-rw-r--r-- | Modules/FindMPI.cmake | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 2ff6afe..a79758f 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -1147,9 +1147,7 @@ macro(_MPI_create_imported_target LANG) set_property(TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_COMPILE_DEFINITIONS "${MPI_${LANG}_COMPILE_DEFINITIONS}") if(MPI_${LANG}_LINK_FLAGS) - separate_arguments(_MPI_${LANG}_LINK_FLAGS NATIVE_COMMAND "${MPI_${LANG}_LINK_FLAGS}") - set_property(TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_LINK_OPTIONS "${_MPI_${LANG}_LINK_FLAGS}") - unset(_MPI_${LANG}_LINK_FLAGS) + set_property(TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_LINK_OPTIONS "SHELL:${MPI_${LANG}_LINK_FLAGS}") endif() # If the compiler links MPI implicitly, no libraries will be found as they're contained within # CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES already. |