summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2019-10-13 14:06:47 +0200
committerEtienne Samson <samson.etienne@gmail.com>2019-10-13 14:06:47 +0200
commita088a1ffa6143d1623eeff1795ae1430e00187a2 (patch)
tree81b6ca5ab3c640f752622f4b39b892ea5b22b002 /cmake
parentef5a3851fdece852569ffebf3537883223744a7a (diff)
downloadlibgit2-a088a1ffa6143d1623eeff1795ae1430e00187a2.tar.gz
cmake: correct the link stanza for CoreFoundation
LIBRARIES is the (absolute?) path to the library. LDFLAGS is the full linker stanza to correctly link with this lib. By passing LIBRARIES as LIBGIT_LIBS, the linker ends up with the absolute path for the SDK'ed version of CoreFoundation (which doesn't exist), instead of the familiar `-framework CoreFoundation`.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/SelectHTTPSBackend.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/SelectHTTPSBackend.cmake b/cmake/Modules/SelectHTTPSBackend.cmake
index 81f3f8b58..c7f6b8f1d 100644
--- a/cmake/Modules/SelectHTTPSBackend.cmake
+++ b/cmake/Modules/SelectHTTPSBackend.cmake
@@ -49,7 +49,7 @@ IF(HTTPS_BACKEND)
SET(GIT_SECURE_TRANSPORT 1)
LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${SECURITY_INCLUDE_DIR})
- LIST(APPEND LIBGIT2_LIBS ${COREFOUNDATION_LIBRARIES} ${SECURITY_LIBRARIES})
+ LIST(APPEND LIBGIT2_LIBS ${COREFOUNDATION_LDFLAGS} ${SECURITY_LDFLAGS})
LIST(APPEND LIBGIT2_PC_LIBS ${COREFOUNDATION_LDFLAGS} ${SECURITY_LDFLAGS})
ELSEIF (HTTPS_BACKEND STREQUAL "OpenSSL")
IF (NOT OPENSSL_FOUND)