From 70cfa76331d9db402a56152fc17baaf0a363aa79 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 6 Mar 2023 09:34:06 -0600 Subject: [PATCH] CMake: use CXX language guard consistently --- cmake/macros/macro_populate_target_properties.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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} -- 2.39.5