mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 17:12:51 +00:00
Added build option SONAME to control whether VERSION and SOVERSION were set for the git2 target, as some platforms require that this NOT be set.
This commit is contained in:
parent
9952f24e6c
commit
e7da9acdcd
@ -16,6 +16,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
|||||||
|
|
||||||
# Build options
|
# Build options
|
||||||
#
|
#
|
||||||
|
OPTION( SONAME "Set the (SO)VERSION of the target" ON )
|
||||||
OPTION( BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON )
|
OPTION( BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON )
|
||||||
OPTION( THREADSAFE "Build libgit2 as threadsafe" OFF )
|
OPTION( THREADSAFE "Build libgit2 as threadsafe" OFF )
|
||||||
OPTION( BUILD_CLAR "Build Tests using the Clar suite" ON )
|
OPTION( BUILD_CLAR "Build Tests using the Clar suite" ON )
|
||||||
@ -258,8 +259,10 @@ TARGET_OS_LIBRARIES(git2)
|
|||||||
|
|
||||||
MSVC_SPLIT_SOURCES(git2)
|
MSVC_SPLIT_SOURCES(git2)
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})
|
IF (SONAME)
|
||||||
SET_TARGET_PROPERTIES(git2 PROPERTIES SOVERSION ${LIBGIT2_VERSION_MAJOR})
|
SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})
|
||||||
|
SET_TARGET_PROPERTIES(git2 PROPERTIES SOVERSION ${LIBGIT2_VERSION_MAJOR})
|
||||||
|
ENDIF()
|
||||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libgit2.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libgit2.pc @ONLY)
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libgit2.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libgit2.pc @ONLY)
|
||||||
|
|
||||||
IF (MSVC_IDE)
|
IF (MSVC_IDE)
|
||||||
|
Loading…
Reference in New Issue
Block a user