diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-10-01 15:45:24 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-10-01 15:45:24 +0000 |
| commit | a46dbe694123474be4b6ded3750bac7160f4f6ed (patch) | |
| tree | c934f62ddc2db8a961f33a2d76a82bc8d820e573 | |
| parent | 394db7b7382ee5b868b193febae6b119ff03c59c (diff) | |
[trunk] V2 will be release with SOVERSION=6
| -rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c956efd..be5a6ae0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,9 +35,27 @@ set(OPENJPEG_VERSION "${OPENJPEG_VERSION_MAJOR}.${OPENJPEG_VERSION_MINOR}.${OPENJPEG_VERSION_BUILD}") set(PACKAGE_VERSION "${OPENJPEG_VERSION_MAJOR}.${OPENJPEG_VERSION_MINOR}.${OPENJPEG_VERSION_BUILD}") + +# Because autotools does not support X.Y notation for SOVERSION, we have to use +# two numbering, one for the openjpeg version and one for openjpeg soversion +# version | soversion +# 1.0 | 0 +# 1.1 | 1 +# 1.2 | 2 +# 1.3 | 3 +# 1.4 | 4 +# 1.5 | 5 +# 1.5.1 | 5 +# 2.0 | 6 +# above is the recommendation by the OPJ team. If you really need to override this default, +# you can specify your own OPENJPEG_SOVERSION at cmake configuration time: +# cmake -DOPENJPEG_SOVERSION:STRING=42 /path/to/openjpeg +if(NOT OPENJPEG_SOVERSION) + SET(OPENJPEG_SOVERSION 6) +endif(NOT OPENJPEG_SOVERSION) set(OPENJPEG_LIBRARY_PROPERTIES VERSION "${OPENJPEG_VERSION_MAJOR}.${OPENJPEG_VERSION_MINOR}.${OPENJPEG_VERSION_BUILD}" - SOVERSION "${OPENJPEG_VERSION_MAJOR}" + SOVERSION "${OPENJPEG_SOVERSION}" ) # -------------------------------------------------------------------------- |
