summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile/CudaStandard.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2016-12-02 21:56:12 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2016-12-12 19:39:32 (GMT)
commit1371eec4c38b0a3b83f1416774c6c213ad0db6fc (patch)
tree7cdc524fe87bc18ddeb67f923f639881e1f0c07e /Tests/RunCMake/try_compile/CudaStandard.cmake
parent3d3d3f94703e23d3d2cbff67537057474e3e0ff1 (diff)
downloadCMake-1371eec4c38b0a3b83f1416774c6c213ad0db6fc.zip
CMake-1371eec4c38b0a3b83f1416774c6c213ad0db6fc.tar.gz
CMake-1371eec4c38b0a3b83f1416774c6c213ad0db6fc.tar.bz2
try_compile: extend CMP0067 to honor language standards for CUDA.
Diffstat (limited to 'Tests/RunCMake/try_compile/CudaStandard.cmake')
-rw-r--r--Tests/RunCMake/try_compile/CudaStandard.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/CudaStandard.cmake b/Tests/RunCMake/try_compile/CudaStandard.cmake
new file mode 100644
index 0000000..96da422
--- /dev/null
+++ b/Tests/RunCMake/try_compile/CudaStandard.cmake
@@ -0,0 +1,7 @@
+enable_language(CUDA)
+try_compile(result ${CMAKE_CURRENT_BINARY_DIR}
+ SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src.cu
+ CUDA_STANDARD 3
+ OUTPUT_VARIABLE out
+ )
+message("try_compile output:\n${out}")