Browse Source

Define SOVERSION to indicate API version

Signed-off-by: Stefano Babic <sbabic@denx.de>
Suggested-by: Sami Hartikainen <oktetti@gmail.com>
pull/10/head
Stefano Babic 4 years ago
parent
commit
c91c150eab
  1. 2
      CMakeLists.txt
  2. 2
      src/CMakeLists.txt

2
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")

2
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)

Loading…
Cancel
Save