diff options
author | Carlos Martín Nieto <carlosmn@github.com> | 2016-04-29 18:34:03 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlosmn@github.com> | 2016-04-29 18:34:03 +0200 |
commit | d24425fa8ea3349f2ce7087dac3cba19481cc389 (patch) | |
tree | 2647969593def59aaa81107f4672bafaf684d14f | |
parent | 5e8ba35d44770e388eaacf48e4696d7a55fefddb (diff) | |
parent | 097b0761f16ec9552287f4c1f50c2e1124ce6db6 (diff) | |
download | libgit2-d24425fa8ea3349f2ce7087dac3cba19481cc389.tar.gz |
Merge pull request #3764 from libgit2/ethomson/cmake_pc
cmake: include threading libraries in pkg-config
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ba3a5184a..337a26bd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() |