From: David Wells Date: Thu, 23 Mar 2023 18:54:27 +0000 (-0400) Subject: Remove the LINK_LANGUAGE:CXX generator. X-Git-Tag: v9.5.0-rc1~428^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bef6958cd7cd3614fd2953db5ad94d2e5a28ae8e;p=dealii.git Remove the LINK_LANGUAGE:CXX generator. 1. Presently, all of our tests are written in C++, so this is just for extra safety. 2. Link language generators were added in CMake 3.18, which we do not yet require. --- diff --git a/cmake/macros/macro_deal_ii_setup_target.cmake b/cmake/macros/macro_deal_ii_setup_target.cmake index 807fcfa9ac..2c6bba82c0 100644 --- a/cmake/macros/macro_deal_ii_setup_target.cmake +++ b/cmake/macros/macro_deal_ii_setup_target.cmake @@ -104,9 +104,7 @@ macro(deal_ii_setup_target _target) "${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}" ) shell_escape_option_groups(_link_options) - target_link_options(${_target} PRIVATE - $<$:${_link_options}> - ) + target_link_options(${_target} PRIVATE ${_link_options}) endif() target_link_libraries(${_target} ${DEAL_II_TARGET_${_build}})