Commit aa1d197
committed
[CMake] Always use
Closes #19327, where it was pretty clear from the logs that rootcling
was called with `LD_LIBRARY_PATH` on Apple:
```
cd /opt/local/var/macports/build/root6-317f8c0f/work/build/net/http && /opt/local/bin/cmake -E env LD_LIBRARY_PATH=/opt/local/var/macports/build/root6-317f8c0f/work/build/lib: ROOTIGNOREPREFIX=1 /opt/local/var/macports/build/root6-317f8c0f/work/build/bin/rootcling ..
dyld[90673]: Library not loaded: @rpath/libRIO.6.36.so
Referenced from: <E1A17F5A-9228-3AB6-9D34-6EA7D65D2C99> /opt/local/var/macports/build/root6-317f8c0f/work/build/bin/rootcling
Reason: tried: '/opt/local/lib/libgcc/libRIO.6.36.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libgcc/libRIO.6.36.so' (no such file), '/opt/local/lib/libRIO.6.36.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libRIO.6.36.so' (no such file), '/opt/local/var/macports/build/root6-317f8c0f/work/build/bin/../lib/root/libRIO.6.36.so' (no such file), '/opt/local/lib/libgcc/libRIO.6.36.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libgcc/libRIO.6.36.so' (no such file), '/opt/local/lib/libRIO.6.36.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libRIO.6.36.so' (no such file), '/opt/local/var/macports/build/root6-317f8c0f/work/build/bin/../lib/root/libRIO.6.36.so' (no such file)
```
This should have used `DYLD_LIBRARY_PATH`.
Actually, there is already a CMake variable `${ld_library_path}` with a
platform-dependent value, so we just need to use is consistently.DYLD_LIBRARY_PATH on Apple in RootMacros1 parent 4241789 commit aa1d197
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
| 635 | + | |
640 | 636 | | |
641 | 637 | | |
642 | 638 | | |
| |||
1873 | 1869 | | |
1874 | 1870 | | |
1875 | 1871 | | |
1876 | | - | |
| 1872 | + | |
1877 | 1873 | | |
1878 | 1874 | | |
1879 | 1875 | | |
| |||
1899 | 1895 | | |
1900 | 1896 | | |
1901 | 1897 | | |
1902 | | - | |
| 1898 | + | |
1903 | 1899 | | |
1904 | 1900 | | |
1905 | 1901 | | |
| |||
0 commit comments