Skip to content

Commit cbb1d2b

Browse files
change SOVERSION to use MAJOR.MINOR format instead of MAJOR.MINOR.PATCH (#186)
* change SOVERSION to use MAJOR.MINOR format instead of MAJOR.MINOR.PATCH format, i.e. "1.5" instead of "1.5.3"
1 parent 2240cff commit cbb1d2b

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

lib/IlmCtl/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ target_link_libraries (IlmCtl
4242

4343
set_target_properties(IlmCtl
4444
PROPERTIES
45-
VERSION ${CTL_VERSION}
46-
SOVERSION ${CTL_VERSION}
45+
VERSION "${CTL_VERSION}"
46+
SOVERSION "${CTL_VERSION_MAJOR}.${CTL_VERSION_MINOR}"
4747
)
4848

4949
install( FILES

lib/IlmCtlMath/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ target_link_libraries (IlmCtlMath
2929

3030
set_target_properties(IlmCtlMath
3131
PROPERTIES
32-
VERSION ${CTL_VERSION}
33-
SOVERSION ${CTL_VERSION}
32+
VERSION "${CTL_VERSION}"
33+
SOVERSION "${CTL_VERSION_MAJOR}.${CTL_VERSION_MINOR}"
3434
)
3535

3636
install(FILES

lib/IlmCtlSimd/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ target_link_libraries(IlmCtlSimd
8888

8989
set_target_properties(IlmCtlSimd
9090
PROPERTIES
91-
VERSION ${CTL_VERSION}
92-
SOVERSION ${CTL_VERSION}
91+
VERSION "${CTL_VERSION}"
92+
SOVERSION "${CTL_VERSION_MAJOR}.${CTL_VERSION_MINOR}"
9393
)
9494

9595
install(FILES CtlSimdInterpreter.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/CTL)

lib/IlmImfCtl/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ target_link_libraries (IlmImfCtl
3636
)
3737

3838
set_target_properties(IlmImfCtl
39-
PROPERTIES
40-
VERSION ${CTL_VERSION}
41-
SOVERSION ${CTL_VERSION}
39+
PROPERTIES
40+
VERSION "${CTL_VERSION}"
41+
SOVERSION "${CTL_VERSION_MAJOR}.${CTL_VERSION_MINOR}"
4242
)
4343

4444
install(FILES

lib/dpx/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ target_link_libraries(ctldpx
3737

3838
set_target_properties(ctldpx
3939
PROPERTIES
40-
VERSION ${CTL_VERSION}
41-
SOVERSION ${CTL_VERSION}
40+
VERSION "${CTL_VERSION}"
41+
SOVERSION "${CTL_VERSION_MAJOR}.${CTL_VERSION_MINOR}"
4242
)

0 commit comments

Comments
 (0)