diff options
author | Brad King <brad.king@kitware.com> | 2016-02-08 15:32:59 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-02-08 15:32:59 (GMT) |
commit | c1ee5166adcbe0aeb25b6cd368bd2917a70b22b4 (patch) | |
tree | 5bdcbd4d060b986a91a363adc437749144999bd4 /Modules | |
parent | 5643088bb18cebcfa9ba28b16cf7ae198ae31645 (diff) | |
parent | 81ecc7263754ad96e3aa77ec4d60b72c49cc1409 (diff) | |
download | CMake-c1ee5166adcbe0aeb25b6cd368bd2917a70b22b4.zip CMake-c1ee5166adcbe0aeb25b6cd368bd2917a70b22b4.tar.gz CMake-c1ee5166adcbe0aeb25b6cd368bd2917a70b22b4.tar.bz2 |
Merge topic 'FindCUDA.cmake/FixNonExistantDependencyFile'
81ecc726 FindCUDA: Added some additional comments about non-existent dependency files.
4b561b4c FindCUDA: Fix for when a non-existent dependency file is found.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDA/make2cmake.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindCUDA/make2cmake.cmake b/Modules/FindCUDA/make2cmake.cmake index c433fa8..b841f3b 100644 --- a/Modules/FindCUDA/make2cmake.cmake +++ b/Modules/FindCUDA/make2cmake.cmake @@ -67,7 +67,9 @@ if (NOT "${depend_text}" STREQUAL "") endif() endif() - if(NOT IS_DIRECTORY "${file}") + # 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 # just /include. |