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.
12 lines
269 B
CMake
12 lines
269 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(not_enough_args)
|
|
run_cmake(alias_target)
|
|
run_cmake(utility_target)
|
|
run_cmake(invalid_args)
|
|
run_cmake(invalid_args_on_interface)
|
|
run_cmake(imported_target)
|
|
run_cmake(no_target)
|
|
run_cmake(not_a_cxx_feature)
|
|
run_cmake(no_matching_cxx_feature)
|