summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/WithDefs/main.notcu
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2019-03-11 16:33:43 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2019-03-11 16:33:43 (GMT)
commitb53766b2058160853a29c2bbf8dbfef7345552a4 (patch)
treef3d7cdfadccdbee4f783cfafa1e16a94455bc41c /Tests/CudaOnly/WithDefs/main.notcu
parentb544e34af61d2f12a5da62e29de5d635171b2b1d (diff)
downloadCMake-b53766b2058160853a29c2bbf8dbfef7345552a4.zip
CMake-b53766b2058160853a29c2bbf8dbfef7345552a4.tar.gz
CMake-b53766b2058160853a29c2bbf8dbfef7345552a4.tar.bz2
CUDA: Support compiler id and version generator expressions
Introduce the CUDA_COMPILER_ID and CUDA_COMPILER_VERSION generator expressions.
Diffstat (limited to 'Tests/CudaOnly/WithDefs/main.notcu')
-rw-r--r--Tests/CudaOnly/WithDefs/main.notcu8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CudaOnly/WithDefs/main.notcu b/Tests/CudaOnly/WithDefs/main.notcu
index 98f73ce..68a296b 100644
--- a/Tests/CudaOnly/WithDefs/main.notcu
+++ b/Tests/CudaOnly/WithDefs/main.notcu
@@ -39,6 +39,14 @@
# error "Expected DEF_LANG_IS_CUDA"
#endif
+#ifndef DEF_CUDA_COMPILER
+# error "DEF_CUDA_COMPILER not defined!"
+#endif
+
+#ifndef DEF_CUDA_COMPILER_VERSION
+# error "DEF_CUDA_COMPILER_VERSION not defined!"
+#endif
+
static __global__ void DetermineIfValidCudaDevice()
{
}