File: 0006-Link-tests-with-pthread.patch

package info (click to toggle)
ros-rospack 2.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 964 kB
  • sloc: cpp: 3,580; xml: 251; python: 35; ansic: 34; sh: 16; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Steven Robbins <smr@debian.org>
Date: Sun, 15 Apr 2018 11:38:18 -0500
Subject: Link tests with pthread.

---
 test/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 2cb302c..ea91e20 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -3,7 +3,7 @@ catkin_add_gtest(${PROJECT_NAME}-utest
           test/utest.cpp
           WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
 if(TARGET ${PROJECT_NAME}-utest)
-  target_link_libraries(${PROJECT_NAME}-utest rospack)
+  target_link_libraries(${PROJECT_NAME}-utest rospack pthread)
 endif()
 
 # Prepare to run the tests.  This could be cleaner.