CUDA: CompilerId now errors out properly when passed a non CUDA compiler.

Previously we only reported an error if the compiler was a C compiler.
This commit is contained in:
Robert Maynard
2016-08-30 12:01:43 -04:00
parent bf326ebb76
commit aaeee1ca72
+2 -3
View File
@@ -1,6 +1,5 @@
#ifndef __cplusplus
# error "A C compiler has been selected for CUDA/C++."
#ifndef __CUDACC__
# error "A C or C++ compiler has been selected for CUDA"
#endif
@CMAKE_CUDA_COMPILER_ID_CONTENT@