Commit cb2b4a9
committed
[core] Use shared library dir as anchor in
Using the shared library directory as the anchor to resolve the resource
directories like `GetIncludeDir()` is more direct and robust than using
`GetRootSys()`, which loses its meaning in some installations (e.g. what
should it be when ROOT is installed by the package manager? Just `/`?).
Most importantly, this change lifts some more constraint from how the
install tree can be reorganized after the fact. One can for example move
the include and library directory around as wanted, as long as their
relative paths don't change. This fixes the Python wheels, which were
broken by commit a5b1ed9.
As of commit a5b1ed9, ROOT became smarter about finding the include path
in the install tree, inferring the correct relative path from $ROOTSYS
and the CMAKE_INSTALL_INCLUDEDIR variable at build time. Before, that
only happened for gnuinstall=ON, but now it always happens.
However, for the Python wheel, we are breaking the assumptions that ROOT
makes by moving around directories in the install tree. This commit
fixes that situation.GetIncludeDir()
1 parent a996981 commit cb2b4a9
File tree
4 files changed
+36
-15
lines changed- core/base
- src
- test
4 files changed
+36
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
239 | 245 | | |
240 | | - | |
241 | 246 | | |
242 | 247 | | |
243 | | - | |
244 | | - | |
| 248 | + | |
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3182 | 3182 | | |
3183 | 3183 | | |
3184 | 3184 | | |
3185 | | - | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
3186 | 3192 | | |
3187 | 3193 | | |
3188 | | - | |
| 3194 | + | |
3189 | 3195 | | |
3190 | | - | |
3191 | | - | |
3192 | | - | |
3193 | | - | |
3194 | | - | |
3195 | | - | |
3196 | | - | |
3197 | | - | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
3198 | 3201 | | |
3199 | 3202 | | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
3200 | 3206 | | |
3201 | 3207 | | |
3202 | 3208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments