summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCUDACompilerId.cu.in
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2016-08-30 16:01:43 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2016-11-14 16:36:43 (GMT)
commitaaeee1ca72d4f8b09ebf98c3e3bd73d50c09c0d8 (patch)
tree0722eb862202ff3ceabcc4f1ceed1dbdb7c33a10 /Modules/CMakeCUDACompilerId.cu.in
parentbf326ebb7694d2e86fbcfef4cb827c70531c3255 (diff)
downloadCMake-aaeee1ca72d4f8b09ebf98c3e3bd73d50c09c0d8.zip
CMake-aaeee1ca72d4f8b09ebf98c3e3bd73d50c09c0d8.tar.gz
CMake-aaeee1ca72d4f8b09ebf98c3e3bd73d50c09c0d8.tar.bz2
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.
Diffstat (limited to 'Modules/CMakeCUDACompilerId.cu.in')
-rw-r--r--Modules/CMakeCUDACompilerId.cu.in5
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@