Fix pkgconfig file Version: field 01/35301/1
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Wed, 11 Feb 2015 15:57:45 +0000 (18:57 +0300)
committerGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Wed, 11 Feb 2015 15:57:45 +0000 (18:57 +0300)
Change-Id: I970bcb0fc0cb9edc3b46d2f1f95a5b4385a52b1e
Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
CMakeLists.txt

index 539e9fe..edc88ca 100644 (file)
@@ -1,5 +1,6 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT(bundle C)
+set (VERSION "0.1.31")
 
 ### Required packages
 INCLUDE(FindPkgConfig)
@@ -21,7 +22,7 @@ add_library(bundle SHARED
                src/keyval_array.c
                )
 set_target_properties(bundle PROPERTIES SOVERSION "0")
-set_target_properties(bundle PROPERTIES VERSION "0.1.31")
+set_target_properties(bundle PROPERTIES VERSION "${VERSION}")
 message(STATUS "Version from debian/changelog: ${VERSION},  Major version: ${VERSION_MAJOR}")
 target_link_libraries(bundle ${pkgs_LDFLAGS})