summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
Diffstat (limited to 'external')
-rw-r--r--external/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
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