From 66710cc86ac662e510b64ca224da8f21d2f2994c Mon Sep 17 00:00:00 2001 From: Kartatz <105828205+Kartatz@users.noreply.github.com> Date: Tue, 7 May 2024 09:52:24 -0300 Subject: [PATCH] Prefer setting CMAKE_PLATFORM_NO_VERSIONED_SONAME to disable versioned SONAME on shared libraries --- CMakeLists.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a8c22d8..dc395c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,9 @@ option(KAI_ENABLE_UNICODE "Enable unicode support for Windows builds" ON) set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) +set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) + +set(CMAKE_PLATFORM_NO_VERSIONED_SONAME ON) # curl set(PICKY_COMPILER OFF) @@ -686,15 +689,6 @@ foreach(source ${libraries}) list(APPEND FFMPEG_LIBRARIES "${destination}") endforeach() -# Disable SO versioning for all third-party packages -foreach(target libcurl_shared nghttp2) - set_target_properties( - ${target} - PROPERTIES - NO_SONAME 1 - ) -endforeach() - add_executable( kai src/sutils.c