File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,6 +127,11 @@ if(NOT COMMAND flamegpu_suppress_some_compiler_warnings)
127127 target_compile_options (${SSCW_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE :CUDA >:SHELL :-Xcompiler -Wno -psabi >" )
128128 target_compile_options (${SSCW_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE :C ,CXX >:-Wno -psabi >" )
129129 endif ()
130+ # (some) GCC 12 in c++20 issues Wrestrict warnings for assigning a single character to a std::string, which is a false-positive.
131+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12.0.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.0.0)
132+ target_compile_options (${SSCW_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE :CUDA >:SHELL :-Xcompiler -Wno -restrict >" )
133+ target_compile_options (${SSCW_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE :C ,CXX >:-Wno -restrict >" )
134+ endif ()
130135 endif ()
131136 # Generic OS/host compiler warning suppressions
132137 # Ensure NVCC outputs warning numbers
You can’t perform that action at this time.
0 commit comments