Skip to content

Commit 1f1f7b7

Browse files
committed
Use the same version for all libraries that can be created in shared mode
1 parent 3f8f8fe commit 1f1f7b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

third-party/realsense-file/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
4242
$<$<BOOL:${USE_EXTERNAL_LZ4}>:lz4::lz4>
4343
)
4444

45-
#set_target_properties(${PROJECT_NAME} PROPERTIES VERSION "${LIBVERSION}" SOVERSION "${LIBSOVERSION}")
45+
set_target_properties(${PROJECT} PROPERTIES VERSION ${REALSENSE_VERSION_STRING} SOVERSION "${REALSENSE_VERSION_MAJOR}.${REALSENSE_VERSION_MINOR}")
4646

4747
set_target_properties (${PROJECT_NAME} PROPERTIES FOLDER Library)
4848

third-party/rsutils/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ add_library( ${PROJECT_NAME} "" )
88
#target_link_libraries( ${PROJECT_NAME} PUBLIC nlohmann_json )
99
target_compile_features( ${PROJECT_NAME} PUBLIC cxx_std_14 )
1010
set_target_properties( ${PROJECT_NAME} PROPERTIES FOLDER Library )
11+
set_target_properties( ${PROJECT_NAME} PROPERTIES VERSION ${REALSENSE_VERSION_STRING} SOVERSION "${REALSENSE_VERSION_MAJOR}.${REALSENSE_VERSION_MINOR}")
1112

1213
target_include_directories( ${PROJECT_NAME}
1314
PUBLIC

0 commit comments

Comments
 (0)