From 1aacaa315494ac5df1f35fc012e556072188c773 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 29 Apr 2016 10:18:04 -0400 Subject: [PATCH] cmake: include threading libraries in pkg-config Include any required threading libraries in our `libgit2.pc`. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c79b2637c..89c68128c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,6 +161,8 @@ FUNCTION(TARGET_OS_LIBRARIES target) IF(THREADSAFE) TARGET_LINK_LIBRARIES(${target} ${CMAKE_THREAD_LIBS_INIT}) + LIST(APPEND LIBGIT2_PC_LIBS ${CMAKE_THREAD_LIBS_INIT}) + SET(LIBGIT2_PC_LIBS ${LIBGIT2_PC_LIBS} PARENT_SCOPE) ENDIF() ENDFUNCTION()