summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/WithDefs/main.notcu
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-03-27 19:31:52 (GMT)
committerRaul Tambre <raul@tambre.ee>2020-05-15 15:12:39 (GMT)
commita653ca9504569eb45077ee598945b18a3c9e4ee8 (patch)
tree9e2753a976a8b43a0cc06587dcc62bb0f3008c84 /Tests/CudaOnly/WithDefs/main.notcu
parent5df21adf46be14061fe0e8ea53213d905e834600 (diff)
downloadCMake-a653ca9504569eb45077ee598945b18a3c9e4ee8.zip
CMake-a653ca9504569eb45077ee598945b18a3c9e4ee8.tar.gz
CMake-a653ca9504569eb45077ee598945b18a3c9e4ee8.tar.bz2
Tests: Update CUDA tests to work with Clang
Diffstat (limited to 'Tests/CudaOnly/WithDefs/main.notcu')
-rw-r--r--Tests/CudaOnly/WithDefs/main.notcu6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/CudaOnly/WithDefs/main.notcu b/Tests/CudaOnly/WithDefs/main.notcu
index a5f4ed6..9119eba 100644
--- a/Tests/CudaOnly/WithDefs/main.notcu
+++ b/Tests/CudaOnly/WithDefs/main.notcu
@@ -7,8 +7,10 @@
# error "INC_CUDA not defined!"
#endif
-#ifndef HOST_DEFINE
-# error "HOST_DEFINE not defined!"
+#ifdef __NVCC__
+# ifndef HOST_DEFINE
+# error "HOST_DEFINE not defined!"
+# endif
#endif
#ifndef PACKED_DEFINE