Skip to content
  • Tyler Nichols's avatar
    Modules: Factor out helpers for GNU language standard flags · 4d27ef55
    Tyler Nichols authored and Tyler Nichols's avatar Tyler Nichols committed
    Add the following macros to `${CMAKE_ROOT}\Modules\Compiler\GNU.cmake`:
    
    * `__compiler_gnu_c_standards()`
    * `__compiler_gnu_cxx_standards()`
    
    These macros are used to define the
    `CMAKE_<LANG><STANDARD>_STANDARD_COMPILE_OPTION` and
    `CMAKE_<LANG><STANDARD>_EXTENSION_COMPILE_OPTION` variables for C-
    and C++-based languages for GCC. The macros are similar to the
    existing `__compiler_clang_cxx_standards()` macro found in
    `${CMAKE_ROOT}\Modules\Compiler\Clang.cmake`.
    4d27ef55