cmake: include threading libraries in pkg-config

Include any required threading libraries in our `libgit2.pc`.
This commit is contained in:
Edward Thomson 2016-04-29 10:18:04 -04:00 committed by Carlos Martín Nieto
parent b726c53991
commit 1aacaa3154

View File

@ -161,6 +161,8 @@ FUNCTION(TARGET_OS_LIBRARIES target)
IF(THREADSAFE) IF(THREADSAFE)
TARGET_LINK_LIBRARIES(${target} ${CMAKE_THREAD_LIBS_INIT}) 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() ENDIF()
ENDFUNCTION() ENDFUNCTION()