refactor cmLanguageFlagKind to cmBuildStep

23 jobs for !7389 with cuda_add_lto_support in 8 minutes and 36 seconds (queued for 5 seconds)
merge request