Skip to content

Commit

Permalink
Merge pull request LLNL#281 from LLNL/bugfix/mpi_link_flags
Browse files Browse the repository at this point in the history
fixed blt_add_target_link_flags for cmake >= 3.13
  • Loading branch information
rrsettgast authored Jun 19, 2019
2 parents 0b1d779 + ed41ef6 commit c0e5924
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/BLTMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ macro(blt_add_target_link_flags)
# In CMake 3.13+, LINK_FLAGS was converted to LINK_OPTIONS.
# This now supports generator expressions but expects a list
# not a string
set_property(TARGET ${arg_TO} APPEND PROPERTY LINK_OPTIONS ${arg_FLAGS})
separate_arguments(_flag_list NATIVE_COMMAND "${arg_FLAGS}" )
foreach( _flag ${_flag_list} )
set_property(TARGET ${arg_TO} APPEND PROPERTY LINK_OPTIONS "${_flag}" )
endforeach()
else()
get_target_property(_link_flags ${arg_TO} LINK_FLAGS)
if(NOT _link_flags)
Expand Down

0 comments on commit c0e5924

Please sign in to comment.