diff options
author | Brad King <brad.king@kitware.com> | 2019-12-12 16:57:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-12-12 16:57:18 (GMT) |
commit | 4fb9c880425ade41735951347d4e7d004a4e1e47 (patch) | |
tree | 7792f6261e1c88c812b679633eab50fde7f27a90 /Tests/Cuda/CXXStandardSetTwice/main.cu | |
parent | bd855ffb5576c7ab2b3281e96a1aebaf825f9e97 (diff) | |
parent | 2467a2b3184595a87e93db510408fc14ddbaf3b9 (diff) | |
download | CMake-4fb9c880425ade41735951347d4e7d004a4e1e47.zip CMake-4fb9c880425ade41735951347d4e7d004a4e1e47.tar.gz CMake-4fb9c880425ade41735951347d4e7d004a4e1e47.tar.bz2 |
Merge topic 'add_cuda_meta_compiler_features'
2467a2b318 CUDA: Add cuda meta-features (e.g. ``cuda_std_11``) support
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3992
Diffstat (limited to 'Tests/Cuda/CXXStandardSetTwice/main.cu')
-rw-r--r-- | Tests/Cuda/CXXStandardSetTwice/main.cu | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/Cuda/CXXStandardSetTwice/main.cu b/Tests/Cuda/CXXStandardSetTwice/main.cu new file mode 100644 index 0000000..d57c05a --- /dev/null +++ b/Tests/Cuda/CXXStandardSetTwice/main.cu @@ -0,0 +1,10 @@ + +#include <type_traits> + +int main(int argc, char** argv) +{ + // Verify that issue #17519 Setting CXX_STANDARD breaks CUDA_STANDARD + // selection via cxx_std_11 has been corrected + using returnv = std::integral_constant<int, 0>; + return returnv::value; +} |