llvm.org GIT mirror llvm / e3aa759
[cmake] Update SOVERSION for the new versioning scheme Update SOVERSION to use just the major version number rather than major+minor, to match the new versioning scheme where only major is used to indicate API/ABI version. Since two-digit SOVERSIONs were introduced post 3.9 branching, this change does not risk any SOVERSION collisions. In the past, two-component X.Y SOVERSIONs were shortly used but those will not interfere with the new ones since the new versions start at 4. Differential Revision: https://reviews.llvm.org/D28730 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292255 91177308-0d34-0410-b5e6-96231b3b80d8 Michal Gorny 3 years ago
1 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
461461 if(UNIX AND NOT APPLE AND NOT ARG_SONAME)
462462 set_target_properties(${name}
463463 PROPERTIES
464 # Concatenate the version numbers since ldconfig expects exactly
465 # one component indicating the ABI version, while LLVM uses
466 # major+minor for that.
467 SOVERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR}
468 VERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
464 # Since 4.0.0, the ABI version is indicated by the major version
465 SOVERSION ${LLVM_VERSION_MAJOR}
466 VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
469467 endif()
470468 endif()
471469