mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
Attempt to suppress system include warnings on MSVC.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user