)
shell_escape_option_groups(_link_options)
target_link_options(${_target} PRIVATE
- $<$<COMPILE_LANGUAGE:CXX>:${_link_options}>
+ $<$<LINK_LANGUAGE:CXX>:${_link_options}>
)
endif()
shell_escape_option_groups(_compile_options)
if(NOT "${_compile_options}" STREQUAL "")
message(STATUS " COMPILE_OPTIONS: ${_compile_options}")
- target_compile_options(${_interface_target} INTERFACE $<$<COMPILE_LANGUAGE:CXX>:${_compile_options}>)
+ target_compile_options(${_interface_target} INTERFACE ${_compile_options})
endif()
separate_arguments(_link_options UNIX_COMMAND
shell_escape_option_groups(_link_options)
if(NOT "${_link_options}" STREQUAL "")
message(STATUS " LINK_OPTIONS: ${_link_options}")
- target_link_options(${_interface_target} INTERFACE $<$<COMPILE_LANGUAGE:CXX>:${_link_options}>)
+ target_link_options(${_interface_target} INTERFACE ${_link_options})
endif()
export(TARGETS ${_interface_target}
"${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}"
)
shell_escape_option_groups(_compile_options)
- target_compile_options(${_target} PRIVATE
- $<$<COMPILE_LANGUAGE:CXX>:${_compile_options}>
- )
+ target_compile_options(${_target} PRIVATE ${_compile_options})
get_property(_type TARGET ${_target} PROPERTY TYPE)
if(NOT "${_type}" STREQUAL "OBJECT_LIBRARY")
"${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}"
)
shell_escape_option_groups(_link_options)
- target_link_options(${_target} PRIVATE
- $<$<COMPILE_LANGUAGE:CXX>:${_link_options}>
- )
+ target_link_options(${_target} PRIVATE ${_link_options})
endif()
target_include_directories(${_target}
"${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}"
)
shell_escape_option_groups(_compile_options)
- target_compile_options(${_target} PRIVATE
- $<$<COMPILE_LANGUAGE:CXX>:${_compile_options}>
- )
+ target_compile_options(${_target} PRIVATE ${_compile_options})
get_property(_type TARGET ${_target} PROPERTY TYPE)
if(NOT "${_type}" STREQUAL "OBJECT_LIBRARY")
"${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}"
)
shell_escape_option_groups(_link_options)
- target_link_options(${_target} PRIVATE
- $<$<COMPILE_LANGUAGE:CXX>:${_link_options}>
- )
+ target_link_options(${_target} PRIVATE ${_link_options})
endif()
target_link_libraries(${_target} ${_visibility}