Fix soname 91/284091/1
authorMateusz Majewski <m.majewski2@samsung.com>
Wed, 9 Nov 2022 12:36:37 +0000 (13:36 +0100)
committerMateusz Majewski <m.majewski2@samsung.com>
Wed, 9 Nov 2022 12:36:37 +0000 (13:36 +0100)
Change-Id: I99c79253b6cde0ed62effe7680d3fec49740b6bb

src/library/CMakeLists.txt

index 12db1efebe6ba0b407edffb8833b1c275d6a25eb..774de3bd7c008e9767a101c579c5186878b51e45 100644 (file)
@@ -10,7 +10,10 @@ target_link_libraries(libsessiond PRIVATE PkgConfig::DEPS sessiond_common)
 target_include_directories(libsessiond PUBLIC include)
 set_target_properties(
        libsessiond PROPERTIES
-       SOVERSION "${VERSION}"
+       VERSION "${VERSION}"
+       # TODO: Find a way to fetch the relewant part of "${VERSION}".
+       # Setting the CMake project version should help but I were not able to do this quickly.
+       SOVERSION 0
        PUBLIC_HEADER "include/sessiond.h"
        C_VISIBILITY_PRESET hidden
 )