summaryrefslogtreecommitdiff
path: root/Modules/CMakeCUDACompilerId.cu.in
Commit message (Collapse)AuthorAgeFilesLines
* CompilerId: Fix default extensions check for Clang targeting MSVC ABIBrad King2022-02-031-3/+2
| | | | | | | | | | | | | In commit fc3a1cbdd8 (CompilerID: Compiler extensions default detection, 2021-05-29, v3.22.0-rc1~52^2~2), extensions were assumed to be `OFF` for Clang targeting the MSVC ABI. However, the `clang` and `clang++` tools both seem to have extensions enabled by default even when targeting the MSVC ABI. This can be observed with the `RunCMake.CompileFeatures` test. It fails with the GNU-like `clang/clang++` front-end, but removing the above special case makes it pass. The test passes either way with the MSVC-like `clang-cl` front-end.
* CompilerId: Restore support for classic C by avoiding C++ style commentsBrad King2021-11-231-1/+1
| | | | | | | | | C++ style comments were added by commit fc3a1cbdd8 (CompilerID: Compiler extensions default detection, 2021-05-29, v3.22.0-rc1~52^2~2), but they may not be supported by the default mode of some C compilers. Use C-style comments instead. For consistency, do this for all languages. Fixes: #22942
* CompilerID: Compiler extensions default detectionRaul Tambre2021-09-281-0/+11
|
* CompilerID: Rename language_dialect to language_standardRaul Tambre2021-09-281-2/+2
| | | | | In Linux C++ terms dialect usually refers to having GNU extensions or not. Change the name to better reflect that this is about the standard version.
* CUDA, CXX, OBJCXX: C++23 support with Clang 12Raul Tambre2020-12-081-1/+3
| | | | | Clang 12 landed initial support for C++23 language mode flag -std={c|gnu}++2b in commit 6627a3c2873fdf7ccba1a1573371079be48b36e8.
* CUDA: Add cuda meta-features (e.g. ``cuda_std_11``) supportRobert Maynard2019-12-101-1/+1
|
* Features: Add infrastructure for C++ 20 language standardBrad King2018-03-271-1/+3
| | | | Issue: #17849
* CUDA: Detect use of MSVC host compilerBrad King2017-01-121-0/+9
| | | | Report it in `CMAKE_CUDA_SIMULATE_{ID,VERSION}`.
* Features: Add infrastructure for C++ 17 language standardBrad King2016-12-021-1/+3
| | | | Issue: #16468
* CUDA: CompilerId now errors out properly when passed a non CUDA compiler.Robert Maynard2016-11-141-3/+2
| | | | Previously we only reported an error if the compiler was a C compiler.
* CUDA: Add basic CUDA language support for *NIX systems.Robert Maynard2016-11-141-0/+40