Bump the library version number to 2.0.0
authorAnders Larsen <al@alarsen.net>
Mon, 9 Apr 2012 15:29:24 +0000 (17:29 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 13 Apr 2012 12:55:36 +0000 (14:55 +0200)
Allow libftdi-1.0 to co-exist with libftdi-0.x to ease migration.

Signed-off-by: Anders Larsen <al@alarsen.net>

CMakeLists.txt
ftdipp/CMakeLists.txt
src/CMakeLists.txt

index 67f0c22..4c43a48 100644 (file)
@@ -1,7 +1,7 @@
 # Project
 project(libftdi)
-set(MAJOR_VERSION 0)
-set(MINOR_VERSION 99)
+set(MAJOR_VERSION 1)
+set(MINOR_VERSION 0)
 set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION})
 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
 
index ced58b3..23000c9 100644 (file)
@@ -25,7 +25,7 @@ if (FTDIPP)
         add_library(ftdipp SHARED ${cpp_sources})
 
         math(EXPR VERSION_FIXUP "${MAJOR_VERSION} + 1")    # Compatiblity with previous releases
-        set_target_properties(ftdipp PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.0 SOVERSION 1)
+        set_target_properties(ftdipp PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.0 SOVERSION 2)
 
         # Static library
         add_library(ftdipp-static STATIC ${cpp_sources})
index b7ae085..7ce9eda 100644 (file)
@@ -24,7 +24,7 @@ set(c_headers     ftdi.h)
 add_library(ftdi SHARED ${c_sources})
 
 math(EXPR VERSION_FIXUP "${MAJOR_VERSION} + 1")    # Compatiblity with previous releases
-set_target_properties(ftdi PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.0 SOVERSION 1)
+set_target_properties(ftdi PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.0 SOVERSION 2)
 
 # Static library
 add_library(ftdi-static STATIC ${c_sources})