summaryrefslogtreecommitdiff
path: root/Meta/CMake
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2021-10-31 17:38:01 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-10 14:42:49 +0100
commitd1eb604896679fa137c2fd3b97148d3ac56735fc (patch)
tree562a6b42205caebae32965efbf4b82880c874e87 /Meta/CMake
parent46aa477b8faa4cf4b5e295f96cb14e93e2dc8355 (diff)
downloadserenity-d1eb604896679fa137c2fd3b97148d3ac56735fc.zip
CMake: Build serenity_lib libraries with a custom SONAME
This allows libraries and binaries to explicitly link against `<library>.so.serenity`, which avoids some confusion if there are other libraries with the same name, such as OpenSSL's `libcrypto`.
Diffstat (limited to 'Meta/CMake')
-rw-r--r--Meta/CMake/utils.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Meta/CMake/utils.cmake b/Meta/CMake/utils.cmake
index 10ba84a1ce..5670f18bc3 100644
--- a/Meta/CMake/utils.cmake
+++ b/Meta/CMake/utils.cmake
@@ -34,6 +34,7 @@ function(serenity_lib target_name fs_name)
serenity_install_sources("Userland/Libraries/${target_name}")
add_library(${target_name} SHARED ${SOURCES} ${GENERATED_SOURCES})
set_target_properties(${target_name} PROPERTIES EXCLUDE_FROM_ALL TRUE)
+ set_target_properties(${target_name} PROPERTIES VERSION "serenity")
install(TARGETS ${target_name} DESTINATION usr/lib OPTIONAL)
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${fs_name})
serenity_generated_sources(${target_name})