summaryrefslogtreecommitdiff
path: root/Modules/FindCUDA
diff options
context:
space:
mode:
authorJames Bigler <jamesbigler@gmail.com>2016-02-05 14:50:29 -0700
committerJames Bigler <jamesbigler@gmail.com>2016-02-05 14:50:29 -0700
commit81ecc7263754ad96e3aa77ec4d60b72c49cc1409 (patch)
treed05386c869c97f68ab9dad9040de908ebaf2645e /Modules/FindCUDA
parent4b561b4cb528a3d6fee6baa79dacfff31923a9b6 (diff)
downloadcmake-81ecc7263754ad96e3aa77ec4d60b72c49cc1409.tar.gz
FindCUDA: Added some additional comments about non-existent dependency files.
Diffstat (limited to 'Modules/FindCUDA')
-rw-r--r--Modules/FindCUDA/make2cmake.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindCUDA/make2cmake.cmake b/Modules/FindCUDA/make2cmake.cmake
index 7b3ca03db2..b841f3b677 100644
--- a/Modules/FindCUDA/make2cmake.cmake
+++ b/Modules/FindCUDA/make2cmake.cmake
@@ -67,6 +67,8 @@ if (NOT "${depend_text}" STREQUAL "")
endif()
endif()
+ # Make sure we check to see if we have a file, before asking if it is not a directory.
+ # if(NOT IS_DIRECTORY "") will return TRUE.
if(file AND NOT IS_DIRECTORY "${file}")
# If softlinks start to matter, we should change this to REALPATH. For now we need
# to flatten paths, because nvcc can generate stuff like /bin/../include instead of