From: Matthias Maier Date: Tue, 24 Jan 2023 01:10:01 +0000 (-0600) Subject: define_interface_target: guard link options with generator expression X-Git-Tag: v9.5.0-rc1~606^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=425e6fb4120311135b12b36f043cba2996166e6f;p=dealii.git define_interface_target: guard link options with generator expression --- diff --git a/cmake/macros/macro_define_interface_target.cmake b/cmake/macros/macro_define_interface_target.cmake index eca2afe37f..396b1cc753 100644 --- a/cmake/macros/macro_define_interface_target.cmake +++ b/cmake/macros/macro_define_interface_target.cmake @@ -120,7 +120,7 @@ function(define_interface_target _feature) ) if(NOT "${_link_options}" STREQUAL "") message(STATUS " LINK_OPTIONS: ${_link_options}") - target_link_options(${_interface_target} INTERFACE ${_link_options}) + target_link_options(${_interface_target} INTERFACE $<$:${_link_options}>) endif() export(TARGETS ${_interface_target}