mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 06:20:56 +00:00
Merge pull request #1580 from carlosmn/cmake-describe
CMake: vendor strings
This commit is contained in:
commit
00384321d3
@ -24,6 +24,7 @@ OPTION( BUILD_EXAMPLES "Build library usage example apps" OFF )
|
|||||||
OPTION( TAGS "Generate tags" OFF )
|
OPTION( TAGS "Generate tags" OFF )
|
||||||
OPTION( PROFILE "Generate profiling information" OFF )
|
OPTION( PROFILE "Generate profiling information" OFF )
|
||||||
OPTION( ENABLE_TRACE "Enables tracing support" OFF )
|
OPTION( ENABLE_TRACE "Enables tracing support" OFF )
|
||||||
|
OPTION( SONAME_APPEND "Append the given string to the library's filename" OFF )
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
# This option is only availalbe when building with MSVC. By default,
|
# This option is only availalbe when building with MSVC. By default,
|
||||||
# libgit2 is build using the stdcall calling convention, as that's what
|
# libgit2 is build using the stdcall calling convention, as that's what
|
||||||
@ -304,6 +305,9 @@ MSVC_SPLIT_SOURCES(git2)
|
|||||||
IF (SONAME)
|
IF (SONAME)
|
||||||
SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})
|
SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})
|
||||||
SET_TARGET_PROPERTIES(git2 PROPERTIES SOVERSION ${LIBGIT2_VERSION_MAJOR})
|
SET_TARGET_PROPERTIES(git2 PROPERTIES SOVERSION ${LIBGIT2_VERSION_MAJOR})
|
||||||
|
IF (SONAME_APPEND)
|
||||||
|
SET_TARGET_PROPERTIES(git2 PROPERTIES OUTPUT_NAME "git2-${SONAME_APPEND}")
|
||||||
|
ENDIF()
|
||||||
ENDIF()
|
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user