Skip to content

Support for C++20 does not work with CMAKE_CXX_STANDARD #31

@dexpota

Description

@dexpota

scapix does not use the same C++ standard version of the project when the version is set with CMAKE_CXX_STANDARD. The following snippet is what I use to set the compiler C++ version.

set(CMAKE_CXX_STANDARD 20)

The issue can be fixed by setting the compiler version with the following snippet.

 target_compile_features(<target> PUBLIC cxx_std_20)

In my opinion, scapix should recognize the compiler version when is set with CMAKE_CXX_STANDARD.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions