Skip to content

Commit 097b076

Browse files
author
Edward Thomson
committed
cmake: include threading libraries in pkg-config
Include any required threading libraries in our `libgit2.pc`.
1 parent 5e8ba35 commit 097b076

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)