diff --git a/CMakeLists.txt b/CMakeLists.txt index 58d9d58e0..085c1421b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,12 +5,15 @@ cmake_minimum_required(VERSION 2.8.8) #Project Name project(netCDF C) set(PACKAGE "netCDF" CACHE STRING "") +#Project Version SET(netCDF_VERSION_MAJOR 4) SET(netCDF_VERSION_MINOR 3) SET(netCDF_VERSION_PATCH 0) SET(netCDF_VERSION_NOTE "") SET(netCDF_VERSION ${netCDF_VERSION_MAJOR}.${netCDF_VERSION_MINOR}.${netCDF_VERSION_PATCH}${netCDF_VERSION_NOTE}) SET(VERSION ${netCDF_VERSION}) +#Library .so version. +SET(netCDF_SO_VERSION 7.0.2) # Set some default C Flags if we are using GCC IF(CMAKE_COMPILER_IS_GNUCC) diff --git a/liblib/CMakeLists.txt b/liblib/CMakeLists.txt index 7da5bfaf3..6709ccdb6 100644 --- a/liblib/CMakeLists.txt +++ b/liblib/CMakeLists.txt @@ -72,7 +72,7 @@ ENDIF() SET_TARGET_PROPERTIES(netcdf PROPERTIES VERSION ${netCDF_VERSION} - SOVERSION ${netCDF_VERSION_MAJOR}) + SOVERSION ${netCDF_SO_VERSION}) INSTALL(TARGETS netcdf EXPORT netcdf-targets RUNTIME DESTINATION bin COMPONENT libraries LIBRARY DESTINATION lib COMPONENT libraries