summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-07-24 10:27:29 -0700
committerGitHub <noreply@github.com>2024-07-24 10:27:29 -0700
commita1607f802ae0a42ffafd2c37d76779873264d371 (patch)
treeec82bf3c0329216eebe36e9d5edfb9cae6b64a18
parent5339f613cefd5d048bd8fba0a1f275184a229b96 (diff)
Fix warning messages for MSVC and external projects (#4730)
Closes #4692
-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