Attempt to suppress system include warnings on MSVC.

This commit is contained in:
Allison Piper
2025-04-03 10:02:00 -04:00
parent 2a25b351ab
commit 7d210614f5

View File

@@ -40,6 +40,10 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "/WX")
endif()
# Suppress warnings from CPM dependency headers:
nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "/external:I${NVBench_BINARY_DIR}/_deps")
nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "/external:W0")
# Suppress overly-pedantic/unavoidable warnings brought in with /W4:
# C4505: unreferenced local function has been removed
# The CUDA `host_runtime.h` header emits this for