Description: Add missing pthread to build system Author: Jörg Frings-Fürst Last-Update: 2019-07-13 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ Index: trunk/CMakeLists.txt =================================================================== --- trunk.orig/CMakeLists.txt +++ trunk/CMakeLists.txt @@ -212,7 +212,8 @@ if(URIPARSER_BUILD_TOOLS) tool/uriparse.c ) - target_link_libraries(uriparse PUBLIC uriparser) + find_package(Threads REQUIRED) + target_link_libraries(uriparse PUBLIC uriparser pthread) if(HAIKU) # Function inet_ntop needs -lsocket or -lnetwork (see pull request #45) @@ -245,6 +246,7 @@ if(URIPARSER_BUILD_TESTS) enable_testing() find_package(GTest 1.8.1 REQUIRED) + find_package(Threads REQUIRED) add_executable(testrunner test/FourSuite.cpp @@ -274,7 +276,7 @@ if(URIPARSER_BUILD_TESTS) ) target_link_libraries(testrunner PUBLIC - ${GTEST_BOTH_LIBRARIES} + ${GTEST_BOTH_LIBRARIES} pthread ) add_test(