Fix FindCUDA.cmake for -Wundef
commit97e9dd85e8039ca3404348556d87072c1e0ca239
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 24 Oct 2017 15:40:58 +0000 (24 17:40 +0200)
committerAleksei Iupinov <a.yupinov@gmail.com>
Sun, 19 Nov 2017 20:39:36 +0000 (19 21:39 +0100)
treed10685dd620ee9386b01b9445b6c78ce9cb7b8d5
parentda82a553346fa9eb0564a62a6eac6ef87824b1b2
Fix FindCUDA.cmake for -Wundef

CUDA 9.0 issues large numbers of -Wundef warnings from its internal
headers. FindCUDA.cmake should be including such headers as
"system" headers, so it is modified to do that.

Fixes #2276

Change-Id: I36ca1208a0597215bf2f1e38d849786e9ac2fed4
cmake/FindCUDA.cmake