diff mbox series

Define SOVERSION to indicate API version

Message ID 20200816162214.3352167-1-sbabic@denx.de
State Accepted
Headers show
Series Define SOVERSION to indicate API version | expand

Commit Message

Stefano Babic Aug. 16, 2020, 4:22 p.m. UTC
Signed-off-by: Stefano Babic <sbabic@denx.de>
Suggested-by: Sami Hartikainen <oktetti@gmail.com>
---
 CMakeLists.txt     | 2 +-
 src/CMakeLists.txt | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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)