Browse Source

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 9 years ago
parent
commit
aaeee1ca72
1 changed files with 2 additions and 3 deletions
  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
 
 @CMAKE_CUDA_COMPILER_ID_CONTENT@