Skip to content

Commit 6deaaa5

Browse files
committed
linkerror fixed on ubuntu
1 parent 4ac89d3 commit 6deaaa5

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

examples/hello_world/CMakeLists.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@ target_link_libraries(
2727
hello_world
2828
assets
2929
conductor
30-
)
30+
)
31+
if(NOT WIN32)
32+
find_package(Threads REQUIRED)
33+
target_link_libraries(
34+
hello_world
35+
Threads::Threads
36+
)
37+
endif()

examples/pdu_communication/CMakeLists.txt

+11
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,14 @@ target_link_libraries(
4444
asset_controller
4545
assets
4646
)
47+
if(NOT WIN32)
48+
find_package(Threads REQUIRED)
49+
target_link_libraries(
50+
asset_plant
51+
Threads::Threads
52+
)
53+
target_link_libraries(
54+
asset_controller
55+
Threads::Threads
56+
)
57+
endif()

0 commit comments

Comments
 (0)