Fix VkFFT build without CUDA drivers
When only stub libraries are present, ld.bfd
have issues with
transitive dependencies on libcuda.so
. It could be solved by:
- having CUDA driver libraries in the build image, or
- setting
libcuda.so
as public dependency for libgromacs and libnblib, or - using another liker (e.g., -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld).
Just like in 572e2dec (!3834 (merged)), we use the second option here.
Refs #4902
Fixes #4922 (closed)
Edited by Andrey Alekseenko