Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

CMake complaining that cxx_std_20 is not supported by Clang 19.1.3 #253

Closed

Description

@jowillianto

Platform : MacOs Sequoia 15.1 Beta
Compiler : Clang 19.1.3
Cmake : 3.31.0
Ninja : 1.12.1

Reproduction Steps :

  • Run cmake to compile the project with any random file.
  • Fail with the following :
Screenshot 2024-11-12 at 1 48 35 PM

Not really sure why this happens as cxx_std_20 check is considered part of cmake standard. However, setting CMAKE_CXX_STANDARD should be enough

Activity

  1. added a commit that references this issue on Nov 12, 2024
  2. added a commit that references this issue on Nov 12, 2024
  3. Urfoex commented on Nov 25, 2024

    @Urfoex
    Collaborator

    FYI:
    https://stackoverflow.com/a/70667652
    https://www.reddit.com/r/cpp_questions/comments/v6g536/comment/ibfdh6i/

    Setting things for targets should be preferred over polluting the global scope. Especially for a library, that is used by others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions