mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Add LIBGITDEVEL support to CMakeLists.txt
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cd545e1075
commit
62999c866f
1 changed files with 11 additions and 1 deletions
|
@ -22,7 +22,17 @@ ENDMACRO()
|
|||
|
||||
pkg_config_library(LIBXML libxml-2.0)
|
||||
pkg_config_library(LIBSQLITE3 sqlite3)
|
||||
pkg_config_library(LIBGIT2 libgit2)
|
||||
if(LIBGIT2DEVEL STREQUAL "")
|
||||
pkg_config_library(LIBGIT2 libgit2)
|
||||
ELSE()
|
||||
include_directories(${LIBGIT2DEVEL}/include)
|
||||
link_directories(${LIBGIT2DEVEL}/build)
|
||||
if(LIBGIT2STATIC STREQUAL "")
|
||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} libgit2.so libssl.so libcrypto.so)
|
||||
ELSE()
|
||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} libgit2.a libssl.so libcrypto.so)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
pkg_config_library(LIBXSLT libxslt)
|
||||
|
||||
SET(LIBDCDEVEL "" CACHE STRING "libraries")
|
||||
|
|
Loading…
Reference in a new issue