diff --git a/Modules/CMakeCUDACompilerId.cu.in b/Modules/CMakeCUDACompilerId.cu.in index ddbc8b4275..5fa85da31c 100644 --- a/Modules/CMakeCUDACompilerId.cu.in +++ b/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@