Import cmake Modules/FindCUDA.cmake
commit4e5f675ce2fbfe86b916095e677b5239d1cff078
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 24 Oct 2017 15:40:58 +0000 (24 17:40 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 10 Nov 2017 12:46:28 +0000 (10 13:46 +0100)
treea24f342e9e91bf23996120a4e871a42b54b4836c
parentc0484a1bac8c1af4b542ea205bc3fd84fc07eeb5
Import cmake Modules/FindCUDA.cmake

CUDA 9.0 issues large numbers of -Wundef warnings from its internal
headers. FindCUDA.cmake should be including such headers as "system"
headers, so to prepare for a patch where it is modified to do that,
this commit imports that file from v3.4.3 of the CMake repository,
because that is a choice likely to work with all future versions of
CMake.

It needs some supporting cmake files that are included unmodified,
so GROMACS does not assert copyright on those. The main FindCUDA.cmake
file is modified only to be able to find those files

Refs #2276

Change-Id: I69ad39dc805648a6cc5e27bb7fcd229f5f2a538a
.gitattributes
cmake/FindCUDA.cmake [new file with mode: 0644]
cmake/FindCUDA/make2cmake.cmake [new file with mode: 0644]
cmake/FindCUDA/parse_cubin.cmake [new file with mode: 0644]
cmake/FindCUDA/run_nvcc.cmake [new file with mode: 0644]