소스 검색

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 년 전
부모
커밋
aaeee1ca72
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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@