X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2FCMakeLists.txt;h=0a6a917f6f502dc17c1fc136c68405d2cf013976;hp=e1ab82d51a0b94d6a52efa814e835921af9d218f;hb=52448565feff5a91cb42df91b0aad64c3abd380c;hpb=b80aee72c93847f79295722315e53fb898b46a27 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e1ab82d..0a6a917 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,6 +9,9 @@ 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) + # Static library add_library(ftdi-static STATIC ${c_sources}) set_target_properties(ftdi-static PROPERTIES OUTPUT_NAME "ftdi")