From: Wolfgang Bangerth Date: Tue, 21 Feb 2023 19:00:38 +0000 (-0700) Subject: Merge pull request #14783 from masterleinad/disable_warnings_nvcc X-Git-Tag: v9.5.0-rc1~537 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6583e730331c4d5f83159c96c33e2cb25236c59;p=dealii.git Merge pull request #14783 from masterleinad/disable_warnings_nvcc Suppress some nvcc warnings --- d6583e730331c4d5f83159c96c33e2cb25236c59 diff --cc cmake/macros/macro_insource_setup_target.cmake index e765cb5e67,4131de49d0..8a956bc2e4 --- a/cmake/macros/macro_insource_setup_target.cmake +++ b/cmake/macros/macro_insource_setup_target.cmake @@@ -36,13 -36,17 +36,18 @@@ function(insource_setup_target _target PRIVATE "${CMAKE_BINARY_DIR}/include" "${CMAKE_SOURCE_DIR}/include" - ${DEAL_II_BUNDLED_INCLUDE_DIRS} ) - target_include_directories(${_target} SYSTEM PRIVATE ${DEAL_II_INCLUDE_DIRS}) + target_include_directories(${_target} + SYSTEM PRIVATE ${DEAL_II_INCLUDE_DIRS} ${DEAL_II_BUNDLED_INCLUDE_DIRS} + ) set(_flags "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}") - separate_arguments(_flags) + + # Make sure some CUDA warning flags don't get deduplicated + string(REGEX REPLACE "(-Xcudafe --diag_suppress=[^ ]+)" "\"SHELL:\\1\"" _flags ${_flags}) + + separate_arguments(_flags UNIX_COMMAND ${_flags}) + target_compile_options(${_target} PUBLIC ${_flags}) target_compile_definitions(${_target}