diff options
-rw-r--r-- | Modules/CMakeCUDACompilerId.cu.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/CMakeCUDACompilerId.cu.in b/Modules/CMakeCUDACompilerId.cu.in index ddbc8b4..5fa85da 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@ |