Skip to content

CXX_STANDARD #293

@shelltitan

Description

@shelltitan

Currently the build system hard-requires C++11:

target_compile_features(
${target_name}
PRIVATE cxx_std_11
)

When using C++20 modules, this forces CMake to downgrade the target unless I manually change it to cxx_std_20.
Could the required standard be exposed as a configurable option (similar to LIBASSERT_DESIRED_CXX_STANDARD), so projects can set their desired C++ version?

Article on the issue:
https://crascit.com/2024/04/04/cxx-modules-cmake-shared-libraries/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions