Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,874
    • Issues 3,874
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Merge requests
  • !1892

Features: Add support for C++ 20 language standard

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Brad King requested to merge brad.king/cmake:features-c++20 into master Mar 27, 2018
  • Overview 4
  • Commits 8
  • Pipelines 1
  • Changes 18

Add C++ 20 to CMake's language standard infrastructure (we already support 98, 11, 14, and 17). For now record only the cxx_std_20 meta-feature. GNU and Clang compilers already support -std=c++2a and -std=gnu++2a flags, so record these flags for relevant versions of those compilers. Also record MSVC support for -std:c++latest on sufficient versions.

Fixes: #17849 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: features-c++20