Skip to content

Commit

Permalink
change method of list creation to use separate_arguments()
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsettgast committed Jun 19, 2019
1 parent d15e99d commit ed41ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/BLTMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ 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
string(REPLACE " " ";" _flag_list ${arg_FLAGS})
separate_arguments(_flag_list NATIVE_COMMAND "${arg_FLAGS}" )
foreach( _flag ${_flag_list} )
set_property(TARGET ${arg_TO} APPEND PROPERTY LINK_OPTIONS ${_flag})
set_property(TARGET ${arg_TO} APPEND PROPERTY LINK_OPTIONS "${_flag}" )
endforeach()
else()
get_target_property(_link_flags ${arg_TO} LINK_FLAGS)
Expand Down

0 comments on commit ed41ef6

Please sign in to comment.