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 --- tls/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tls') 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