summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile/CudaStandardNoDefault.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-07 16:45:44 (GMT)
committerBrad King <brad.king@kitware.com>2017-01-12 15:39:04 (GMT)
commit5599d858c7881b4331c449ba5c59d255ed50bd11 (patch)
tree9461bf2509ff5b14e6442b2cfde2c8808bd49dc1 /Tests/RunCMake/try_compile/CudaStandardNoDefault.cmake
parent1155170230ebd096df06ebf108908d6c99242d6d (diff)
downloadCMake-5599d858c7881b4331c449ba5c59d255ed50bd11.zip
CMake-5599d858c7881b4331c449ba5c59d255ed50bd11.tar.gz
CMake-5599d858c7881b4331c449ba5c59d255ed50bd11.tar.bz2
CUDA: Port test cases to Windows with MSVC host compiler
Diffstat (limited to 'Tests/RunCMake/try_compile/CudaStandardNoDefault.cmake')
-rw-r--r--Tests/RunCMake/try_compile/CudaStandardNoDefault.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/CudaStandardNoDefault.cmake b/Tests/RunCMake/try_compile/CudaStandardNoDefault.cmake
new file mode 100644
index 0000000..ea22152
--- /dev/null
+++ b/Tests/RunCMake/try_compile/CudaStandardNoDefault.cmake
@@ -0,0 +1,9 @@
+enable_language(CUDA)
+try_compile(result ${CMAKE_CURRENT_BINARY_DIR}
+ SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src.cu
+ CUDA_STANDARD 3 # bogus, but not used
+ OUTPUT_VARIABLE out
+ )
+if(NOT result)
+ message(FATAL_ERROR "try_compile failed:\n${out}")
+endif()