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 --- ssl/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ssl') 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( -- cgit v1.2.3-55-g6feb