From: Viktor Szakats Date: Thu, 13 Jun 2024 11:43:59 +0000 (+0200) Subject: cmake: enable SOVERSION for Cygwin and `CMAKE_DLL_NAME_WITH_SOVERSION` X-Git-Tag: curl-8_9_0~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5a35b493d5701ff4f6d9b1b7afdaed76c32ab63;p=thirdparty%2Fcurl.git cmake: enable SOVERSION for Cygwin and `CMAKE_DLL_NAME_WITH_SOVERSION` - enable SOVERSION when `CMAKE_DLL_NAME_WITH_SOVERSION=ON` is set. Ref: https://cmake.org/cmake/help/v3.27/variable/CMAKE_DLL_NAME_WITH_SOVERSION.html Use: https://github.com/search?q=-DCMAKE_DLL_NAME_WITH_SOVERSION&type=code - enable SOVERSION for Cygwin builds by default. Ref: #13936 Ref: #13944 Closes #13898 --- diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index aedcfc6fdf..63e5b91390 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -191,7 +191,9 @@ if(BUILD_SHARED_LIBS) $ $) - if(APPLE OR + if(CMAKE_DLL_NAME_WITH_SOVERSION OR + CYGWIN OR + APPLE OR CMAKE_SYSTEM_NAME STREQUAL "AIX" OR CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "SunOS" OR