mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-08-23 23:35:31 +08:00
Bug 5323118: Remove the -lpthread and -lrt which are not supported on QNX
This commit is contained in:
parent
6c9e9d3cd2
commit
de5fa98e6e
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user