mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.
5 lines
98 B
CMake
5 lines
98 B
CMake
|
|
add_custom_target(utility)
|
|
|
|
target_compile_features(utility PRIVATE cxx_delegating_constructors)
|