From: Jann Köker <39256107+jannkoeker@users.noreply.github.com> Date: Wed, 24 Nov 2021 10:35:36 +0000 (+0100) Subject: Update CMakeLists.txt X-Git-Tag: v1.5.1~1^2~48^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2877%2Fhead;p=thirdparty%2Fzstd.git Update CMakeLists.txt Prevents multiple rules error when building with ninja and clang under windows --- 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)