From: Matthias Maier Date: Mon, 6 Mar 2023 15:34:06 +0000 (-0600) Subject: CMake: use CXX language guard consistently X-Git-Tag: v9.5.0-rc1~446^2~8 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70cfa76331d9db402a56152fc17baaf0a363aa79;p=dealii.git CMake: use CXX language guard consistently --- diff --git a/cmake/macros/macro_populate_target_properties.cmake b/cmake/macros/macro_populate_target_properties.cmake index bbfdc9f12a..8363484ea7 100644 --- a/cmake/macros/macro_populate_target_properties.cmake +++ b/cmake/macros/macro_populate_target_properties.cmake @@ -106,7 +106,9 @@ function(populate_target_properties _target _build) separate_arguments(_link_options UNIX_COMMAND "${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}" ) - target_link_options(${_target} PRIVATE ${_link_options}) + target_link_options(${_target} PRIVATE + $<$:${_link_options}> + ) endif() target_link_libraries(${_target} ${_visibility}