Permalink
Browse files

Don't hardcode version number

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@705090 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
  • Loading branch information...
Montel committed Aug 27, 2007
1 parent f63cff6 commit 4bf5396890b597ed3a97b80139105501b4054009
Showing with 10 additions and 3 deletions.
  1. +7 −0 CMakeLists.txt
  2. +1 −1 taglib.pc.cmake
  3. +2 −2 taglib/CMakeLists.txt
View
@@ -23,6 +23,13 @@ if(MSVC)
add_definitions( -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE )
endif(MSVC)
+SET(TAGLIB_LIB_MAJOR_VERSION "1")
+SET(TAGLIB_LIB_MINOR_VERSION "4")
+SET(TAGLIB_LIB_PATCH_VERSION "0")
+
+SET(TAGLIB_LIB_VERSION_STRING "${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}")
+
+
include(ConfigureChecks.cmake)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib-config )
View
@@ -6,6 +6,6 @@ includedir=${INCLUDE_INSTALL_DIR}
Name: TagLib
Description: Audio meta-data library
Requires:
-Version: 1.4
+Version: ${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}
Libs: -L${LIB_INSTALL_DIR} -ltag
Cflags: -I${INCLUDE_INSTALL_DIR}/taglib
View
@@ -119,8 +119,8 @@ if(ZLIB_FOUND)
endif(ZLIB_FOUND)
SET_TARGET_PROPERTIES(tag PROPERTIES
- VERSION 1.4.0
- SOVERSION 1
+ VERSION ${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}
+ SOVERSION ${TAGLIB_LIB_MAJOR_VERSION}
INSTALL_NAME_DIR ${LIB_INSTALL_DIR}
DEFINE_SYMBOL MAKE_TAGLIB_LIB
)

0 comments on commit 4bf5396

Please sign in to comment.