From abc5dc67f559ff74fab0682f88f6d57409287c68 Mon Sep 17 00:00:00 2001 From: promero Date: Wed, 14 Jul 2021 14:38:03 +0200 Subject: [PATCH] Fixes #2066. Signed-off-by: promero --- examples/C++/DDS/DeadlineQoSExample/CMakeLists.txt | 2 +- examples/C++/DeadlineQoSExample/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/C++/DDS/DeadlineQoSExample/CMakeLists.txt b/examples/C++/DDS/DeadlineQoSExample/CMakeLists.txt index df93ad6258e..e1ce5279f6f 100644 --- a/examples/C++/DDS/DeadlineQoSExample/CMakeLists.txt +++ b/examples/C++/DDS/DeadlineQoSExample/CMakeLists.txt @@ -59,7 +59,7 @@ target_compile_definitions(DDSDeadlineQoSExample PRIVATE ) target_include_directories(DDSDeadlineQoSExample PRIVATE ${Asio_INCLUDE_DIR}) target_link_libraries(DDSDeadlineQoSExample fastrtps fastcdr foonathan_memory) -if(UNIX) +if(UNIX AND NOT(QNXNTO)) target_link_libraries(DDSDeadlineQoSExample pthread) endif() diff --git a/examples/C++/DeadlineQoSExample/CMakeLists.txt b/examples/C++/DeadlineQoSExample/CMakeLists.txt index 2e6e92494d5..1325274467f 100644 --- a/examples/C++/DeadlineQoSExample/CMakeLists.txt +++ b/examples/C++/DeadlineQoSExample/CMakeLists.txt @@ -59,7 +59,7 @@ target_compile_definitions(DeadlineQoSExample PRIVATE ) target_include_directories(DeadlineQoSExample PRIVATE ${Asio_INCLUDE_DIR}) target_link_libraries(DeadlineQoSExample fastrtps fastcdr foonathan_memory) -if(UNIX) +if(UNIX AND NOT(QNXNTO)) target_link_libraries(DeadlineQoSExample pthread) endif()