diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2016-12-02 21:56:12 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2016-12-12 19:39:32 (GMT) |
commit | 1371eec4c38b0a3b83f1416774c6c213ad0db6fc (patch) | |
tree | 7cdc524fe87bc18ddeb67f923f639881e1f0c07e /Tests/RunCMake/try_compile/CudaStandard.cmake | |
parent | 3d3d3f94703e23d3d2cbff67537057474e3e0ff1 (diff) | |
download | CMake-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.cmake | 7 |
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}") |