From bf605c6fddad2218f996016a26f86f1e9a4b8be5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 22 Feb 2023 04:15:02 +0000 Subject: [PATCH] Fix NVCC CI --- cmake/macros/check_compiler_setup/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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}) -- 2.39.5