From 336b5d56d197fc64be75611c9dcaac71c56996d8 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 18 Mar 2025 09:19:35 -0700 Subject: Fix MSVC warning D9025 when building external dependencies. (#6630) * Fix MSVC warning D9025 when building external dependencies. * revert unrelated change. --- external/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index a590fe538..0e0fd7f37 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -20,9 +20,7 @@ endif() # Similarly, disable warnings for external projects if(NOT SLANG_ENABLE_EXTERNAL_COMPILER_WARNINGS) - if(MSVC) - add_compile_options(/W0) - else() + if(NOT MSVC) add_compile_options(-w) endif() endif() -- cgit v1.2.3