Skip to content

Commit

Permalink
attemtpt to add diagnostic error numbers to nvc++ warnings so they ca…
Browse files Browse the repository at this point in the history
…n be added to suppressions
  • Loading branch information
ptheywood committed Jan 11, 2024
1 parent 955b1f6 commit f78e195
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/warnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ if(NOT COMMAND flamegpu_set_high_warning_level)
# Disabled, as cpplint occasionally disagrees with gcc concerning override
# target_compile_options(${SHWL_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler -Wsuggest-override>")
# target_compile_options(${SHWL_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE:C,CXX>:-Wsuggest-override>")

# if nvhpc, add display error numbers to the host com
if(CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC")
target_compile_options(${SHWL_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE:C,CXX>:SHELL:--display_error_number>")
endif()
endif()
# Generic options regardless of platform/host compiler:
# Ensure NVCC outputs warning numbers
Expand Down

0 comments on commit f78e195

Please sign in to comment.