Explorar o código

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.
Robert Maynard %!s(int64=9) %!d(string=hai) anos
pai
achega
aaeee1ca72
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      Modules/CMakeCUDACompilerId.cu.in

+ 2 - 3
Modules/CMakeCUDACompilerId.cu.in

@@ -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
 #endif
 
 
 @CMAKE_CUDA_COMPILER_ID_CONTENT@
 @CMAKE_CUDA_COMPILER_ID_CONTENT@