]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Update CMakeLists.txt 2877/head
authorJann Köker <39256107+jannkoeker@users.noreply.github.com>
Wed, 24 Nov 2021 10:35:36 +0000 (11:35 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Nov 2021 10:35:36 +0000 (11:35 +0100)
 Prevents multiple rules error when building with ninja and clang under windows

build/cmake/lib/CMakeLists.txt

index a9bff58e5bf503ad5e7a83dcf680118a1ec0d5f2..7ba46933024a5aea14d370d3c2da42c2349dbdff 100644 (file)
@@ -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)