summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/WriteCompilerDetectionHeader
Commit message (Collapse)AuthorAgeFilesLines
* Add deprecation warnings for policies CMP0120 and belowBrad King2023-06-072-0/+20
| | | | | | | The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for policies introduced in CMake 3.20 and below to encourage projects to port away from setting policies to OLD.
* Tests/RunCMake: Update cmake_minimum_required versionsBrad King2023-02-111-1/+1
| | | | | | | | For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
* WriteCompilerDetectionHeader: Add policy to remove moduleBrad King2020-12-0513-0/+60
| | | | | | See justification in the policy documentation. Closes: #17842
* WCDH: introduce BARE_FEATURESRolf Eike Beer2018-04-031-0/+1
| | | | | | This allows defining compat versions of some C/C++ features with the name of the keyword itself, so all code can look as if it was written for the new language standard.
* WCDH: Make it possible to generate multiple files.Stephen Kelly2014-11-2410-0/+57
| | | | | | Extend the write_compiler_detection_header interface to allow specifying a location for supplementary files, and getting the list of resulting files as a variable.
* WCDH: Ensure that the prefix argument to the macro is valid.Stephen Kelly2014-07-027-0/+34
| | | | | The prefix must be a C-identifier because it is written as the prefix of preprocessor macros and possibly structs.
* WCDH: Issue a better message for version compatibility.Stephen Kelly2014-06-051-1/+5
|
* Add the WriteCompilerDetectionHeader module.Stephen Kelly2014-05-1432-0/+173
Provide a function to write a portable header to detect compiler features. Generate a preprocessor #error for unknown compilers and compiler versions whose features are not yet recorded. This error condition might be relaxed in the future, but for now it is useful for verification of expectations.