From 0a36c104ca2f16200822b389f9a1bd0e35f64c1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jann=20K=C3=B6ker?= <39256107+jannkoeker@users.noreply.github.com> Date: Wed, 24 Nov 2021 11:35:36 +0100 Subject: [PATCH] Update CMakeLists.txt Prevents multiple rules error when building with ninja and clang under windows --- build/cmake/lib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt index a9bff58e5..7ba469330 100644 --- a/build/cmake/lib/CMakeLists.txt +++ b/build/cmake/lib/CMakeLists.txt @@ -106,7 +106,7 @@ if (MSVC) endif () # With MSVC static library needs to be renamed to avoid conflict with import library -if (MSVC) +if (MSVC OR (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")) set(STATIC_LIBRARY_BASE_NAME zstd_static) else () set(STATIC_LIBRARY_BASE_NAME zstd) -- 2.47.2