summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_compile_features/RunCMakeTest.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Tests: add tests for empty-value keyword arguments in target_*Ben Boeckel2018-10-261-0/+1
| | | | | | Not all of these commands accept non-compilable (i.e., IMPORTED) targets, so those calls are currently just commented out. If they ever do start to accept them, the tests should be enabled.
* target_compile_features: Do not crash on non-enabled languageBrad King2017-06-261-0/+1
| | | | Fixes: #17011
* Features: Extend concept to C language.Stephen Kelly2014-05-141-0/+2
| | | | | | | | | | | 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.
* Add target_compile_features command.Stephen Kelly2014-04-071-0/+11
This can be used to set the compiler features required by particular targets. An error is issued at CMake time if the compiler does not support the required feature. If a language dialect flag is required by the features used, that will be added automatically. Base the target_compile_features command on cmTargetPropCommandBase. This gives us 'free' handling of IMPORTED, ALIAS, INTERFACE, non-compilable and missing targets.