From: Daniel Arndt Date: Wed, 22 Feb 2023 04:15:02 +0000 (+0000) Subject: Fix NVCC CI X-Git-Tag: v9.5.0-rc1~533^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf605c6fddad2218f996016a26f86f1e9a4b8be5;p=dealii.git Fix NVCC CI --- diff --git a/cmake/macros/check_compiler_setup/CMakeLists.txt b/cmake/macros/check_compiler_setup/CMakeLists.txt index 53c61e673a..d423055b01 100644 --- a/cmake/macros/check_compiler_setup/CMakeLists.txt +++ b/cmake/macros/check_compiler_setup/CMakeLists.txt @@ -2,6 +2,11 @@ project(CheckCompilerSetup) cmake_minimum_required(VERSION 3.13.4) add_executable(CheckCompilerSetupExec dummy.cpp) +# Make sure some CUDA warning flags don't get deduplicated +string (REPLACE ";" " " TEST_COMPILE_FLAGS "${TEST_COMPILE_FLAGS}") +string(REGEX REPLACE "(-Xcudafe --diag_suppress=[^ ]+)" "\"SHELL:\\1\"" TEST_COMPILE_FLAGS "${TEST_COMPILE_FLAGS}") +separate_arguments(TEST_COMPILE_FLAGS UNIX_COMMAND "${TEST_COMPILE_FLAGS}") + target_compile_options(CheckCompilerSetupExec PRIVATE ${TEST_COMPILE_FLAGS}) set_property(TARGET CheckCompilerSetupExec PROPERTY LINK_FLAGS "${TEST_LINK_OPTIONS}") target_link_libraries(CheckCompilerSetupExec ${TEST_LINK_LIBRARIES})