diff options
author | Theo Buehler <tb@openbsd.org> | 2024-10-02 04:44:37 +0200 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-10-02 04:44:37 +0200 |
commit | 6a20a5841cb70424c2ebfa936047ef6ea3567b52 (patch) | |
tree | bd60fd521f592490dd7408d61cdd1dff3a20509f /tls | |
parent | 415eb81ec3e3c2425668db7abde9153228d9f1de (diff) | |
download | portable-6a20a5841cb70424c2ebfa936047ef6ea3567b52.tar.gz portable-6a20a5841cb70424c2ebfa936047ef6ea3567b52.tar.bz2 portable-6a20a5841cb70424c2ebfa936047ef6ea3567b52.zip |
Only use DLL_NAME_WITH_SOVERSION for cmake >= 3.27
Suggested by Viktor Szakats in #1084
Diffstat (limited to 'tls')
-rw-r--r-- | tls/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
64 | EXPORT_NAME TLS | 64 | EXPORT_NAME TLS |
65 | VERSION ${TLS_VERSION} | 65 | VERSION ${TLS_VERSION} |
66 | SOVERSION ${TLS_MAJOR_VERSION} | 66 | SOVERSION ${TLS_MAJOR_VERSION} |
67 | DLL_NAME_WITH_SOVERSION TRUE | 67 | if(NOT CMAKE_VERSION VERSION_LESS 3.27.0) |
68 | DLL_NAME_WITH_SOVERSION TRUE | ||
69 | endif() | ||
68 | ) | 70 | ) |
69 | 71 | ||
70 | target_include_directories( | 72 | target_include_directories( |