1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-05 19:15:58 +03:00

Fix zstd-static output name with MINGW/Clang

This commit is contained in:
مهدي شينون (Mehdi Chinoune)
2021-12-22 10:08:49 +01:00
committed by Mehdi Chinoune
parent 41153071a0
commit 14a0eaf73b

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 OR (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")) if (MSVC OR (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT MINGW))
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)