From de5fa98e6ec5a80cfe39026c89044387c8dc2ba5 Mon Sep 17 00:00:00 2001 From: shawnz Date: Tue, 10 Jun 2025 15:18:04 +0800 Subject: [PATCH] Bug 5323118: Remove the -lpthread and -lrt which are not supported on QNX --- .../2_Concepts_and_Techniques/threadMigration/CMakeLists.txt | 2 +- Samples/3_CUDA_Features/memMapIPCDrv/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Samples/2_Concepts_and_Techniques/threadMigration/CMakeLists.txt b/Samples/2_Concepts_and_Techniques/threadMigration/CMakeLists.txt index 9603b6c6..ab3ac87a 100644 --- a/Samples/2_Concepts_and_Techniques/threadMigration/CMakeLists.txt +++ b/Samples/2_Concepts_and_Techniques/threadMigration/CMakeLists.txt @@ -37,7 +37,7 @@ target_link_libraries(threadMigration PUBLIC CUDA::cuda_driver ) -if(UNIX) +if(UNIX AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "QNX") target_link_libraries(threadMigration PUBLIC pthread) endif() diff --git a/Samples/3_CUDA_Features/memMapIPCDrv/CMakeLists.txt b/Samples/3_CUDA_Features/memMapIPCDrv/CMakeLists.txt index ce04a08e..b2066843 100644 --- a/Samples/3_CUDA_Features/memMapIPCDrv/CMakeLists.txt +++ b/Samples/3_CUDA_Features/memMapIPCDrv/CMakeLists.txt @@ -37,7 +37,7 @@ target_link_libraries(memMapIPCDrv PUBLIC CUDA::cuda_driver ) -if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") +if(UNIX AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "QNX") target_link_libraries(memMapIPCDrv PUBLIC rt) endif()