]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use target_link_options for link options 15876/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 14 Aug 2023 15:34:41 +0000 (11:34 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 14 Aug 2023 15:41:57 +0000 (11:41 -0400)
cmake/macros/macro_copy_target_properties.cmake

index c55a18239e33b8e9b59dda5da346cd3ea4adc89e..58569585fd87b11dac75a65b081aab222a421b2c 100644 (file)
@@ -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()
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.