]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix zstd-static output name with MINGW/Clang 2947/head
authorمهدي شينون (Mehdi Chinoune) <79349457+MehdiChinoune@users.noreply.github.com>
Wed, 22 Dec 2021 09:08:49 +0000 (10:08 +0100)
committerMehdi Chinoune <mehdi.chinoune@hotmail.com>
Wed, 22 Dec 2021 09:16:41 +0000 (10:16 +0100)
build/cmake/lib/CMakeLists.txt

index 7ba46933024a5aea14d370d3c2da42c2349dbdff..ec8480d5dbf24ce812fbf0480a842d958509e75f 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 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)
 else ()
     set(STATIC_LIBRARY_BASE_NAME zstd)