Update CMakeLists.txt

Prevents multiple rules error when building with ninja and clang under windows
This commit is contained in:
Jann Köker 2021-11-24 11:35:36 +01:00 committed by GitHub
parent c2c6a4ab40
commit 0a36c104ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ if (MSVC)
endif () endif ()
# With MSVC static library needs to be renamed to avoid conflict with import library # 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) set(STATIC_LIBRARY_BASE_NAME zstd_static)
else () else ()
set(STATIC_LIBRARY_BASE_NAME zstd) set(STATIC_LIBRARY_BASE_NAME zstd)