mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
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`.
This commit is contained in:
parent
46aa477b8f
commit
d1eb604896
1 changed files with 1 additions and 0 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue