1
0
Эх сурвалжийг харах

Merge topic 'FindCUDA-no-windows-librt'

f4e979b1 FindCUDA: Do not look for librt on Windows
Brad King 9 жил өмнө
parent
commit
8ba870bad6

+ 1 - 1
Modules/FindCUDA.cmake

@@ -818,7 +818,7 @@ if(CUDA_USE_STATIC_CUDA_RUNTIME)
       unset(CMAKE_THREAD_PREFER_PTHREAD)
       unset(CMAKE_THREAD_PREFER_PTHREAD)
     endif()
     endif()
   endif()
   endif()
-  if (NOT APPLE AND CUDA_VERSION VERSION_LESS "7.0")
+  if (UNIX AND NOT APPLE AND CUDA_VERSION VERSION_LESS "7.0")
     # Before CUDA 7.0, there was librt that has things such as, clock_gettime, shm_open, and shm_unlink.
     # Before CUDA 7.0, there was librt that has things such as, clock_gettime, shm_open, and shm_unlink.
     find_library(CUDA_rt_LIBRARY rt)
     find_library(CUDA_rt_LIBRARY rt)
     if (NOT CUDA_rt_LIBRARY)
     if (NOT CUDA_rt_LIBRARY)