Suppress some nvcc warnings
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}
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