You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[core] Generalize TROOT::GetIncludeDir() using build tree marker
Introducing a new marker file generalizes `TROOT::GetIncludeDir()` to
work in all cases for both relocated install and build trees, even if
the `CMAKE_INSTALL_INCLUDEDIR` is different from `include`.
This follows up on 43ec084, which was incomplete and left ROOT
configuration in a broken state, because `ROOTINCDIR` was not defined
anymore but still used.
The `RConfigure.h` header still defines a few other internal macros with
hardcoded paths, and if the suggested mechanism proves to be stable for
the include directory, we can also migrate the other macros. They are
fragile anyway. For example, they contain relative paths for
`gnuinstall=OFF` and absolute paths for `gnuinstall=ON`, which is
nowhere documented and breaks relocatable builds. Also, they use
`ROOTSYS` in the case of `gnuinstall=OFF`, which we want to migrate away
from.
The `ROOT::FoundationUtils::GetIncludeDir()` function was also removed
and completely absorbed into `TROOT::GetIncludeDir()`, as it was not
used in any other place.
Also, allow absolute `CMAKE_INSTALL_INCLUDEDIR` paths.
0 commit comments