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 .
Is your feature request related to a problem? Please describe.
In the
cmake/modules/CheckCompiler.cmakefile, the macro forces the dependent library (e.g. R3BRoot) to use the standard from FairRoot:FairRoot/cmake/modules/CheckCompiler.cmake
Lines 48 to 53 in 5863027
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_STANDARDinstead ofFairRoot_CXX_STANDARD.