FindCUDA does not work in Cygwin, due to bad prefix/suffix defaults
The Cygwin default CMAKE_FIND_LIBRARY prefixes and suffixes don't work to find files like cudart.lib
in the FindCUDA.cmake
module. Code like this should be added into the module, either in cuda_find_library_local_first_with_path_ext
or close to the beginning:
if(CYGWIN)
set(CMAKE_FIND_LIBRARY_PREFIXES "")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a" ".lib")
endif()
Edited by Brendan Byrd