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.
This commit is contained in:
Arthur Schreiber 2015-05-05 22:36:24 +02:00
parent b162d97a4f
commit 7a5c755989

View File

@ -156,10 +156,12 @@ INCLUDE_DIRECTORIES(src include)
IF (SECURITY_FOUND) IF (SECURITY_FOUND)
MESSAGE("-- Found Security ${SECURITY_DIRS}") MESSAGE("-- Found Security ${SECURITY_DIRS}")
SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -framework Security")
ENDIF() ENDIF()
IF (COREFOUNDATION_FOUND) IF (COREFOUNDATION_FOUND)
MESSAGE("-- Found CoreFoundation ${COREFOUNDATION_DIRS}") MESSAGE("-- Found CoreFoundation ${COREFOUNDATION_DIRS}")
SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} -framework CoreFoundation")
ENDIF() ENDIF()