mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-06 04:41:09 +00:00
Merge pull request #3764 from libgit2/ethomson/cmake_pc
cmake: include threading libraries in pkg-config
This commit is contained in:
commit
d24425fa8e
@ -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