Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Enable pthread to fix build error #409

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions test/test-platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ if(NETWORKING)
add_executable(test-platform
main.cpp
TestPlatform.cpp)


set(CMAKE_THREAD_PREFER_PTHREAD 1)
find_package(Threads REQUIRED)

target_link_libraries(test-platform
PRIVATE parameter pfw_utility remote-processor)
PRIVATE parameter pfw_utility remote-processor Threads::Threads)
# Workaround because asio is still leaking to test-platform
target_link_libraries(test-platform PRIVATE asio)

Expand Down