mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 06:20:56 +00:00
cmake: include threading libraries in pkg-config
Include any required threading libraries in our `libgit2.pc`.
This commit is contained in:
parent
b726c53991
commit
1aacaa3154
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user