blob: a7aa3ccb93bbeca1515af9cce419c0c2e86dbd4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
Description: Add missing pthread to build system
Author: Jörg Frings-Fürst <debian@jff.email>
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
@@ -217,7 +217,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)
@@ -258,6 +259,7 @@ if(URIPARSER_BUILD_TESTS)
enable_testing()
find_package(GTest 1.8.0 REQUIRED)
+ find_package(Threads REQUIRED)
add_executable(testrunner
test/FourSuite.cpp
@@ -287,7 +289,7 @@ if(URIPARSER_BUILD_TESTS)
)
target_link_libraries(testrunner PUBLIC
- ${GTEST_BOTH_LIBRARIES}
+ ${GTEST_BOTH_LIBRARIES} pthread
)
add_test(
|