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()