mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Simplify libgit handling on main CMakeLists.txt
We will use the OPTIONS variable to decide to find the .a or the .so, so there's no need to do checks here. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5a9931f438
commit
46990f4ac8
1 changed files with 2 additions and 7 deletions
|
@ -34,13 +34,8 @@ pkg_config_library(LIBZIP libzip)
|
||||||
if(NOT ${PREFER_GIT_FROMSOURCE})
|
if(NOT ${PREFER_GIT_FROMSOURCE})
|
||||||
pkg_config_library(LIBGIT2 libgit2)
|
pkg_config_library(LIBGIT2 libgit2)
|
||||||
ELSE()
|
ELSE()
|
||||||
include_directories(${LIBGIT2DEVEL}/include)
|
FIND_PACKAGE(LIBGIT2 REQUIRED)
|
||||||
link_directories(${LIBGIT2DEVEL}/build)
|
INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDE_DIRS})
|
||||||
if(NOT DEFINED LIBGIT2STATIC)
|
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lgit2 -lssl -lcrypto)
|
|
||||||
ELSE()
|
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} libgit2.a -lssl -lcrypto)
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
SET(LIBDCDEVEL "" CACHE STRING "libraries")
|
SET(LIBDCDEVEL "" CACHE STRING "libraries")
|
||||||
|
|
Loading…
Add table
Reference in a new issue