From 56712a105aa06a649496bf151685c31c9011d3ce Mon Sep 17 00:00:00 2001
From: Stephen Sorley <Stephen.Sorley@jhuapl.edu>
Date: Fri, 22 Jul 2016 17:53:24 -0400
Subject: [PATCH] Fix for spurious CMake warning message on Windows.

The incorrect warning appears when compiling with CUDA SDK 6.5 or
older and CUDA_USE_STATIC_CUDA_RUNTIME is true.
---
 Modules/FindCUDA.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 8c000a0..866f818 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)
-- 
1.9.1

