summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEngininja2 <139037756+Engininja2@users.noreply.github.com>2023-09-15 06:24:30 -0600
committerGitHub <noreply@github.com>2023-09-15 15:24:30 +0300
commit7e50d34be68aae2cc766203703dd188e910e033a (patch)
treedfafd602fa76edd2e75793949e8180a7064361b5
parent235f7c193b02dacfb56319e41a28684b3a2c6db0 (diff)
cmake : fix building shared libs for clang (rocm) on windows (#3176)
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 346ea8d2..3283f7b6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -445,7 +445,7 @@ if (LLAMA_ALL_WARNINGS)
endif()
-if (MSVC)
+if (WIN32)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
if (BUILD_SHARED_LIBS)