Bug 5323118: Remove the -lpthread and -lrt which are not supported on QNX

This commit is contained in:
shawnz 2025-06-10 15:18:04 +08:00
parent 6c9e9d3cd2
commit de5fa98e6e
2 changed files with 2 additions and 2 deletions

View File

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

View File

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