summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-03 13:20:35 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-08-03 13:20:35 (GMT)
commit8ba870bad6210ae2c053ae4f7c19bcb9d8312eab (patch)
treef46e726ea0344c03d6a4a972f740d9dfcf1c652e /Modules/FindCUDA.cmake
parent573397bb540a1b1bbe991602d58835bb1a9f61e1 (diff)
parentf4e979b126e41384b14f0d5ff8b41d81b6f41a00 (diff)
downloadCMake-8ba870bad6210ae2c053ae4f7c19bcb9d8312eab.zip
CMake-8ba870bad6210ae2c053ae4f7c19bcb9d8312eab.tar.gz
CMake-8ba870bad6210ae2c053ae4f7c19bcb9d8312eab.tar.bz2
Merge topic 'FindCUDA-no-windows-librt'
f4e979b1 FindCUDA: Do not look for librt on Windows
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r--Modules/FindCUDA.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index dbc56bb..d7c9d8a 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -818,7 +818,7 @@ if(CUDA_USE_STATIC_CUDA_RUNTIME)
unset(CMAKE_THREAD_PREFER_PTHREAD)
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.
find_library(CUDA_rt_LIBRARY rt)
if (NOT CUDA_rt_LIBRARY)