Not entirely sure what you mean though, in CMake you only have to mention them once afaik. Also, they use the global add_compiler_flag but the recommended way, I believe, is to use target-specific methods e.g target_add_compiler_flag. Is there a reason for using the other setup?