From aaeee1ca72d4f8b09ebf98c3e3bd73d50c09c0d8 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 30 Aug 2016 12:01:43 -0400 Subject: 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. --- Modules/CMakeCUDACompilerId.cu.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Modules/CMakeCUDACompilerId.cu.in') 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@ -- cgit v1.2.1