diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-12-17 14:01:28 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-17 10:13:39 -0800 |
commit | bbc7cbdf75c5ae27b20db0c201e87db06694ec4c (patch) | |
tree | 4ed0c303f5e9629729485d8ac25cec0b3422f110 /cmake | |
parent | e7aba9e3620b3759fa7ac55f906de08367623b74 (diff) | |
download | subsurface-bbc7cbdf75c5ae27b20db0c201e87db06694ec4c.tar.gz |
Remove depreceated calls to -DLIBGIT23
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/HandleFindGit2.cmake | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cmake/Modules/HandleFindGit2.cmake b/cmake/Modules/HandleFindGit2.cmake index e0bb9979f..34db7b672 100644 --- a/cmake/Modules/HandleFindGit2.cmake +++ b/cmake/Modules/HandleFindGit2.cmake @@ -2,9 +2,6 @@ if(LIBGIT2_FROM_PKGCONFIG) pkg_config_library(LIBGIT2 libgit2 REQUIRED) set(LIBGIT2_LIBRARIES "") - if(USE_LIBGIT23_API) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_LIBGIT23_API") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBGIT23_API") if(ANDROID) # for Android we need to force a static link against ssl and crypto # this is a bit hacky, but it seems to work @@ -14,13 +11,9 @@ if(LIBGIT2_FROM_PKGCONFIG) pkg_config_library(LIBSSH2 libssh2 REQUIRED) set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} ${LIBSSH2_LIBRARIES}) endif() - endif() else() find_package(LIBGIT2 REQUIRED) include_directories(${LIBGIT2_INCLUDE_DIR}) - if(USE_LIBGIT23_API) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_LIBGIT23_API") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBGIT23_API") if(FORCE_LIBSSH) find_package(Libssh2 QUIET CONFIG) if ("${LIBSSH2_VERSION}" STRGREATER "1.6.1") @@ -35,5 +28,4 @@ else() pkg_config_library(LIBCURL libcurl REQUIRED) endif() set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} -L${LIBSSH2_LIBRARY_DIRS} ${LIBSSH2_LIBRARIES} ${LIBCURL_LIBRARIES}) - endif() endif() |