Files
CMake/Tests/Cuda/MixedStandardLevels/main.cu
T
Robert Maynard 4b7618d170 CUDA: Fix CUDA_STANDARD selection via cxx_std_11 with CXX_STANDARD
When C++ features require a certain C++/CUDA level, verify or update the
standard level target property for each language independently.

While at it, add missing rejection of invalid `CUDA_STANDARD` property
values.

Co-Author: Brad King <brad.king@kitware.com>
Fixes: #17519
2017-12-15 10:29:20 -05:00

11 lines
257 B
Plaintext

#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;
}