${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_query_git_information.cmake
${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_setup_target.cmake
${CMAKE_SOURCE_DIR}/cmake/macros/macro_shell_escape_option_groups.cmake
+ ${CMAKE_SOURCE_DIR}/cmake/macros/macro_target_compile_flags.cmake
+ ${CMAKE_SOURCE_DIR}/cmake/macros/macro_target_link_flags.cmake
)
file(COPY ${_macros}
DESTINATION ${CMAKE_BINARY_DIR}/${DEAL_II_SHARE_RELDIR}/macros
set(_build "RELEASE")
endif()
- separate_arguments(_compile_options UNIX_COMMAND
+ target_compile_flags(${_target} PRIVATE "$<COMPILE_LANGUAGE:CXX>"
"${DEAL_II_WARNING_FLAGS} ${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}>
- )
get_property(_type TARGET ${_target} PROPERTY TYPE)
if(NOT "${_type}" STREQUAL "OBJECT_LIBRARY")
- separate_arguments(_link_options UNIX_COMMAND
+ target_link_flags(${_target} PRIVATE
"${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}"
)
- shell_escape_option_groups(_link_options)
- target_link_options(${_target} PRIVATE ${_link_options})
endif()
target_link_libraries(${_target} ${DEAL_II_TARGET_${_build}})