]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix NVCC CI 14821/head
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 22 Feb 2023 04:15:02 +0000 (04:15 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 22 Feb 2023 04:15:02 +0000 (04:15 +0000)
cmake/macros/check_compiler_setup/CMakeLists.txt

index 53c61e673ae94a0d88154a113ed46522ef7366f1..d423055b01a696f721e33495087cc76443c141a7 100644 (file)
@@ -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})

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.