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.
10 lines
282 B
CMake
10 lines
282 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(NotAFeature)
|
|
run_cmake(NotAFeatureGenex)
|
|
run_cmake(NotAFeatureTransitive)
|
|
run_cmake(NotAFeature_OriginDebug)
|
|
run_cmake(NotAFeature_OriginDebugGenex)
|
|
run_cmake(NotAFeature_OriginDebugTransitive)
|
|
run_cmake(NotAFeature_OriginDebug_target_compile_features)
|