From: Daniel Arndt Date: Mon, 14 Aug 2023 15:34:41 +0000 (-0400) Subject: Use target_link_options for link options X-Git-Tag: relicensing~590^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c767593519cbb427aaa49797b210cd2c8a3fbec;p=dealii.git Use target_link_options for link options --- diff --git a/cmake/macros/macro_copy_target_properties.cmake b/cmake/macros/macro_copy_target_properties.cmake index c55a18239e..58569585fd 100644 --- a/cmake/macros/macro_copy_target_properties.cmake +++ b/cmake/macros/macro_copy_target_properties.cmake @@ -152,7 +152,7 @@ function(copy_target_properties _destination_target) if(NOT "${_link_options}" STREQUAL "") remove_duplicates(_link_options REVERSE) message(STATUS " LINK_OPTIONS: ${_link_options}") - target_compile_options(${_destination_target} INTERFACE ${_link_options}) + target_link_options(${_destination_target} INTERFACE ${_link_options}) endif() endfunction()