Merge pull request #2877 from jannkoeker/dev

Add detection when compiling with Clang and Ninja under Windows
This commit is contained in:
Yann Collet
2021-11-30 17:39:38 -08:00
committed by GitHub
+1 -1
View 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)