diff options
author | Lukáš Lalinský <lukas@oxygene.sk> | 2015-08-25 17:04:34 +0200 |
---|---|---|
committer | Lukáš Lalinský <lukas@oxygene.sk> | 2015-08-25 17:04:34 +0200 |
commit | 29ed26528107f996c8b19d6184b55a516ffdb862 (patch) | |
tree | 7d7128f827e2a4e5b2fc3ab6be93ef30e95c3d14 /CMakeLists.txt | |
parent | 35aa6c4e842872b1d9c11c08233f4a3f2e7d471e (diff) |
Skip the patch version if it's 0
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bde0d0a..dbd2fcd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,11 @@ set(TAGLIB_LIB_MAJOR_VERSION "1") set(TAGLIB_LIB_MINOR_VERSION "10") set(TAGLIB_LIB_PATCH_VERSION "0") -set(TAGLIB_LIB_VERSION_STRING "${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}") +if("${TAGLIB_LIB_PATCH_VERSION}" EQUAL "0") + set(TAGLIB_LIB_VERSION_STRING "${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}") +else() + set(TAGLIB_LIB_VERSION_STRING "${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}") +endif() # 1. If the library source code has changed at all since the last update, then increment revision. # 2. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. @@ -130,4 +134,4 @@ configure_file( if (NOT TARGET uninstall) add_custom_target(uninstall COMMAND "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") -endif()
\ No newline at end of file +endif() |