Skip to content

Allow dependent libraries to use lower standards as FairRoot #1623

@YanzhaoW

Description

@YanzhaoW

Is your feature request related to a problem? Please describe.

In the cmake/modules/CheckCompiler.cmake file, the macro forces the dependent library (e.g. R3BRoot) to use the standard from FairRoot:

if (FairRoot_CXX_STANDARD)
if ((NOT CMAKE_CXX_STANDARD)
OR (CMAKE_CXX_STANDARD VERSION_LESS FairRoot_CXX_STANDARD))
set(CMAKE_CXX_STANDARD "${FairRoot_CXX_STANDARD}")
endif()
endif()

This makes the dependent libraries very inflexible as sometimes user needs to compile with a lower standard to check backward compatibility.

Describe the solution you'd like

Either remove these lines or use something like FairRoot_CXX_MIN_STANDARD instead of FairRoot_CXX_STANDARD .

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