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.
This commit is contained in:
commit
c1ee5166ad
@ -67,7 +67,9 @@ if (NOT "${depend_text}" STREQUAL "")
|
|||||||
endif()
|
endif()
|
||||||
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
|
# 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
|
# to flatten paths, because nvcc can generate stuff like /bin/../include instead of
|
||||||
# just /include.
|
# just /include.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user