mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Fix iOS build issue
This commit is contained in:
@@ -2,7 +2,7 @@ include(SanitizeBool)
|
||||
|
||||
# We try to find any packages our backends might use
|
||||
find_package(GSSAPI)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "iOS")
|
||||
include(FindGSSFramework)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ include(SanitizeBool)
|
||||
# We try to find any packages our backends might use
|
||||
find_package(OpenSSL)
|
||||
find_package(mbedTLS)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "iOS")
|
||||
find_package(Security)
|
||||
find_package(CoreFoundation)
|
||||
endif()
|
||||
|
||||
@@ -201,7 +201,7 @@ add_feature_info(iconv GIT_USE_ICONV "iconv encoding conversion support")
|
||||
add_subdirectory(libgit2)
|
||||
add_subdirectory(util)
|
||||
|
||||
if(BUILD_CLI)
|
||||
if(BUILD_CLI AND NOT CMAKE_SYSTEM_NAME MATCHES "iOS")
|
||||
add_subdirectory(cli)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user