From a1607f802ae0a42ffafd2c37d76779873264d371 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Wed, 24 Jul 2024 10:27:29 -0700 Subject: Fix warning messages for MSVC and external projects (#4730) Closes #4692 --- external/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 3ad07f10a..007390431 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -10,7 +10,11 @@ endif() # Similarly, disable warnings for external projects if(NOT SLANG_ENABLE_EXTERNAL_COMPILER_WARNINGS) - add_compile_options(-w) + if(MSVC) + add_compile_options(/W0) + else() + add_compile_options(-w) + endif() endif() # Miniz -- cgit v1.2.3