diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ad6a2c..f153027 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project (libubootenv C) # set (libubootenv_VERSION_MAJOR 1) # set (libubootenv_VERSION_MAJOR_VERSION_MINOR 0) set(VERSION "0.3") -SET(SOVERSION "${VERSION}") +SET(SOVERSION "0") add_definitions(-DVERSION="${VERSION}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e86456c..a04dd11 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -13,7 +13,7 @@ SET(include_HEADERS include(GNUInstallDirs) # for the CMAKE_INSTALL_LIBDIR variable add_library(ubootenv SHARED ${libubootenv_SOURCES} ${include_HEADERS}) -SET_TARGET_PROPERTIES(ubootenv PROPERTIES SOVERSION ${SOVERSION}) +SET_TARGET_PROPERTIES(ubootenv PROPERTIES VERSION ${VERSION} SOVERSION ${SOVERSION}) ADD_LIBRARY(ubootenv_static STATIC ${libubootenv_SOURCES} ${include_HEADERS}) SET_TARGET_PROPERTIES(ubootenv_static PROPERTIES OUTPUT_NAME ubootenv)