Skip to content

Commit

Permalink
cmake: include threading libraries in pkg-config
Browse files Browse the repository at this point in the history
Include any required threading libraries in our `libgit2.pc`.
  • Loading branch information
Edward Thomson committed Apr 29, 2016
1 parent 5e8ba35 commit 097b076
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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()

Expand Down

0 comments on commit 097b076

Please sign in to comment.