Skip to content

Commit d24425f

Browse files
committed
Merge pull request libgit2#3764 from libgit2/ethomson/cmake_pc
cmake: include threading libraries in pkg-config
2 parents 5e8ba35 + 097b076 commit d24425f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ FUNCTION(TARGET_OS_LIBRARIES target)
161161

162162
IF(THREADSAFE)
163163
TARGET_LINK_LIBRARIES(${target} ${CMAKE_THREAD_LIBS_INIT})
164+
LIST(APPEND LIBGIT2_PC_LIBS ${CMAKE_THREAD_LIBS_INIT})
165+
SET(LIBGIT2_PC_LIBS ${LIBGIT2_PC_LIBS} PARENT_SCOPE)
164166
ENDIF()
165167
ENDFUNCTION()
166168

0 commit comments

Comments
 (0)