Skip to content

Commit

Permalink
Prefer setting CMAKE_PLATFORM_NO_VERSIONED_SONAME to disable versione…
Browse files Browse the repository at this point in the history
…d SONAME on shared libraries
  • Loading branch information
Kartatz committed May 7, 2024
1 parent 7a79ade commit 66710cc
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 66710cc

Please sign in to comment.