diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index d4d23a49f5..90d6ee4c4c 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -92,7 +92,7 @@ target_include_directories( $>) # SOVERSION should increase on incompatible ABI change -set_target_properties(ddsc PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) +set_target_properties(ddsc PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION}) # define target property to indicate if Cyclone DDS is compiled with type library support define_property(TARGET diff --git a/src/core/cdr/CMakeLists.txt b/src/core/cdr/CMakeLists.txt index c79a450463..3cb5fd1dc8 100644 --- a/src/core/cdr/CMakeLists.txt +++ b/src/core/cdr/CMakeLists.txt @@ -39,6 +39,8 @@ else() add_library(cdr) add_library(${PROJECT_NAME}::cdr ALIAS cdr) + set_target_properties(cdr PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION}) + target_sources(cdr PRIVATE ${srcs_cdr} ${hdrs_private_cdr} ${CMAKE_CURRENT_LIST_DIR}/../../ddsrt/src/bswap.c) target_include_directories(cdr PUBLIC "${CMAKE_CURRENT_LIST_DIR}/include" "${PROJECT_BINARY_DIR}/include" diff --git a/src/idl/CMakeLists.txt b/src/idl/CMakeLists.txt index ff97949f1c..9ddfa39a0b 100644 --- a/src/idl/CMakeLists.txt +++ b/src/idl/CMakeLists.txt @@ -163,7 +163,7 @@ set_target_properties( idl PROPERTIES OUTPUT_NAME "cycloneddsidl" VERSION ${PROJECT_VERSION} - SOVERSION ${PROJECT_VERSION_MAJOR}) + SOVERSION ${PROJECT_VERSION}) generate_export_header(idl EXPORT_FILE_NAME include/idl/export.h)