From: Engininja2 Date: Fri, 15 Sep 2023 12:24:30 +0000 (-0600) Subject: cmake : fix building shared libs for clang (rocm) on windows (#3176) X-Git-Tag: gguf-v0.4.0~67 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=7e50d34be68aae2cc766203703dd188e910e033a;p=pkg%2Fggml%2Fsources%2Fllama.cpp cmake : fix building shared libs for clang (rocm) on windows (#3176) --- 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)