From 7a5c755989da9b364b6c1d2f88aca33c00df39b2 Mon Sep 17 00:00:00 2001 From: Arthur Schreiber Date: Tue, 5 May 2015 22:36:24 +0200 Subject: [PATCH] Ensure frameworks are mentioned in libgit2.pc When building on Mac OS X, the `CoreFoundation` and `Security` frameworks where missing from `Libs.private` in the generated `libgit2.pc` file. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c8bf7ab8..935129d04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -156,10 +156,12 @@ INCLUDE_DIRECTORIES(src include) IF (SECURITY_FOUND) MESSAGE("-- Found Security ${SECURITY_DIRS}") + SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -framework Security") ENDIF() IF (COREFOUNDATION_FOUND) MESSAGE("-- Found CoreFoundation ${COREFOUNDATION_DIRS}") + SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -framework CoreFoundation") ENDIF()