fix how --sysroot is taken into account in CMakeMake easyblock#2247
fix how --sysroot is taken into account in CMakeMake easyblock#2247boegel wants to merge 1 commit intoeasybuilders:developfrom
Conversation
|
Hmm, this PR breaks the installation of GROMACS, it fails to find the FFTW libraries for some reason when using The libraries are there though, in |
|
Similar issue with And with CGAL, where So somehow using Perhaps a better approach is to add |
|
Patching CMake itself is probably a better way forward, see #2248 ... |
|
To help in checking what went wrong: https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_DEBUG_MODE.html Edit: Judging from the code: Setting |
|
Closing this, the fix in #2248 has proven to be a better approach... |
(created using
eb --new-pr)The fix in #2247 was way too naive, and according to the CMake docs
CMAKE_SYSROOTcan only be specified in a toolchain file.I've also added setting
-DCMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX=64to fix a problem where libraries likelibpthread.sowas not being found when installing LLVM, because it was located in${EPREFIX}/usr/lib64(onaarch64), rather than in${EPREFIX}/usr/lib(like it is onx86_64).This manifested as follows:
After a bit of digging, I noticed this in
CMakeCache.txt:In a working environment (with
libpthread.soin${EPREFIX}/usr/lib), this was:Thanks a lot to @zao for the help in figuring out this unholy mess...