From 6a20a5841cb70424c2ebfa936047ef6ea3567b52 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Wed, 2 Oct 2024 04:44:37 +0200 Subject: Only use DLL_NAME_WITH_SOVERSION for cmake >= 3.27 Suggested by Viktor Szakats in #1084 --- crypto/CMakeLists.txt | 4 +++- ssl/CMakeLists.txt | 4 +++- tls/CMakeLists.txt | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index c4f1af5..59939cb 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -850,7 +850,9 @@ set_target_properties(crypto PROPERTIES EXPORT_NAME Crypto VERSION ${CRYPTO_VERSION} SOVERSION ${CRYPTO_MAJOR_VERSION} - DLL_NAME_WITH_SOVERSION TRUE + if(NOT CMAKE_VERSION VERSION_LESS 3.27.0) + DLL_NAME_WITH_SOVERSION TRUE + endif() ) target_include_directories( diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index 414fe07..f5288a9 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt @@ -92,7 +92,9 @@ set_target_properties(ssl PROPERTIES EXPORT_NAME SSL VERSION ${SSL_VERSION} SOVERSION ${SSL_MAJOR_VERSION} - DLL_NAME_WITH_SOVERSION TRUE + if(NOT CMAKE_VERSION VERSION_LESS 3.27.0) + DLL_NAME_WITH_SOVERSION TRUE + endif() ) target_include_directories( diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index e584dcb..406fe12 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt @@ -64,7 +64,9 @@ set_target_properties(tls PROPERTIES EXPORT_NAME TLS VERSION ${TLS_VERSION} SOVERSION ${TLS_MAJOR_VERSION} - DLL_NAME_WITH_SOVERSION TRUE + if(NOT CMAKE_VERSION VERSION_LESS 3.27.0) + DLL_NAME_WITH_SOVERSION TRUE + endif() ) target_include_directories( -- cgit v1.2.3-55-g6feb