summaryrefslogtreecommitdiff
path: root/Modules/CMakeDetermineCompileFeatures.cmake
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Support upcoming C++26 language levelRobert Maynard2022-08-311-0/+19
|
* HIP: Add language to CMakeRobert Maynard2021-06-071-0/+56
|
* CompilerId/Features: Tolerate variables named for languagesBrad King2021-05-031-3/+3
| | | | | | | | | | | If a `CMakeLists.txt` or `CMAKE_TOOLCHAIN_FILE` sets a variable named `C`, `CXX`, or `CUDA`, we were previously comparing each enabled language name to the value of that variable, rather than the name itself. Double-quote the string to take advantage of policy `CMP0054`, but also add "x" prefixes to support projects that do not set the policy. Fixes: #22125
* C23 supportRaul Tambre2021-02-251-0/+6
|
* C17 supportRaul Tambre2021-02-251-0/+6
| | | | Implements #17755.
* CUDA, CXX, OBJCXX: C++23 support with Clang 12Raul Tambre2020-12-081-1/+13
| | | | | 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-0/+51
|
* Refactor: Use added message types in various modulesAlex Turbov2019-11-021-6/+6
| | | | Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* Features: Add infrastructure for C++ 20 language standardBrad King2018-03-271-0/+6
| | | | Issue: #17849
* Features: Add infrastructure for C++ 17 language standardBrad King2016-12-021-0/+6
| | | | Issue: #16468
* Simplify CMake per-source license noticesBrad King2016-09-271-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* Features: Add support for C++14 features.Stephen Kelly2014-05-221-1/+7
| | | | Record the features implemented by GNU 4.9 and Clang 3.4.
* Features: Ensure that list exists to remove from.Stephen Kelly2014-05-201-1/+1
|
* Features: Extend concept to C language.Stephen Kelly2014-05-151-1/+39
| | | | | | | | | | | Add properties and variables corresponding to CXX equivalents. Add features for c_function_prototypes (C90), c_restrict (C99), c_variadic_macros (C99) and c_static_assert (C11). This feature set can be extended later. Add a <PREFIX>_RESTRICT symbol define to WriteCompilerDetectionHeader to conditionally represent the c_restrict feature.
* Features: Add cxx_template_template_parameters.Stephen Kelly2014-04-161-0/+7
| | | | | Extend the existing feature infrastructure as needed to support both C++11 and C++98 features.
* project: Add infrastructure for recording CXX compiler featuresStephen Kelly2014-04-071-0/+43
Add a feature test using the compiler macros and the preprocessor to determine available features. Add a CMAKE_CXX_COMPILE_FEATURES variable which contains all features known to the loaded compiler, and a CMAKE_CXX_KNOWN_FEATURES variable containing all features known to CMake. Add language standard specific variables for internal use to determine the standard-specific compile flags to use. This will be extended to other languages in the future. Follow-up commits will add features which will be recorded by the feature test.