Commit 5b6292a77c343a4fe41b2a10ae99193e20577ee8

Carlos Martín Nieto 2015-05-06T07:37:49

Merge pull request #3100 from arthurschreiber/patch-5 Ensure frameworks are mentioned in libgit2.pc

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c8bf7a..935129d 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()