summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStephen Sorley <Stephen.Sorley@jhuapl.edu>2016-07-22 21:53:24 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-02 13:15:22 (GMT)
commitf4e979b126e41384b14f0d5ff8b41d81b6f41a00 (patch)
tree010b6d59279cc6b417c1671b625d8f454fe3aee2 /Modules
parentfd59f9ad519c1c311c54569133797d9061e90558 (diff)
downloadCMake-f4e979b126e41384b14f0d5ff8b41d81b6f41a00.zip
CMake-f4e979b126e41384b14f0d5ff8b41d81b6f41a00.tar.gz
CMake-f4e979b126e41384b14f0d5ff8b41d81b6f41a00.tar.bz2
FindCUDA: Do not look for librt on Windows
Otherwise an incorrect warning appears when compiling with CUDA SDK 6.5 or older and CUDA_USE_STATIC_CUDA_RUNTIME is true.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCUDA.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 6d9b833..354ee6e 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -817,7 +817,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)