Skip to content

Commit 7d21061

Browse files
committed
Attempt to suppress system include warnings on MSVC.
1 parent 2a25b35 commit 7d21061

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/NVBenchConfigTarget.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
4040
nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "/WX")
4141
endif()
4242

43+
# Suppress warnings from CPM dependency headers:
44+
nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "/external:I${NVBench_BINARY_DIR}/_deps")
45+
nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "/external:W0")
46+
4347
# Suppress overly-pedantic/unavoidable warnings brought in with /W4:
4448
# C4505: unreferenced local function has been removed
4549
# The CUDA `host_runtime.h` header emits this for

0 commit comments

Comments
 (0)