File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1142,16 +1142,15 @@ macro(_MPI_create_imported_target LANG)
1142
1142
1143
1143
set_property (TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_COMPILE_DEFINITIONS "${MPI_${LANG} _COMPILE_DEFINITIONS}" )
1144
1144
1145
- set_property (TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_LINK_LIBRARIES "" )
1146
1145
if (MPI_${LANG}_LINK_FLAGS )
1147
1146
separate_arguments (_MPI_${LANG}_LINK_FLAGS NATIVE_COMMAND "${MPI_${LANG} _LINK_FLAGS}" )
1148
- set_property (TARGET MPI::MPI_${LANG} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${_MPI_${LANG} _LINK_FLAGS}" )
1147
+ set_property (TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_LINK_OPTIONS "${_MPI_${LANG} _LINK_FLAGS}" )
1149
1148
unset (_MPI_${LANG}_LINK_FLAGS )
1150
1149
endif ()
1151
1150
# If the compiler links MPI implicitly, no libraries will be found as they're contained within
1152
1151
# CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES already.
1153
1152
if (MPI_${LANG}_LIBRARIES )
1154
- set_property (TARGET MPI::MPI_${LANG} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${MPI_${LANG} _LIBRARIES}" )
1153
+ set_property (TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_LINK_LIBRARIES "${MPI_${LANG} _LIBRARIES}" )
1155
1154
endif ()
1156
1155
# Given the new design of FindMPI, INCLUDE_DIRS will always be located, even under implicit linking.
1157
1156
set_property (TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${MPI_${LANG} _INCLUDE_DIRS}" )
You can’t perform that action at this time.
0 commit comments