What's the best way to tell CMake to use the LLVM linker llvm-link
instead of GNU ld
as linker? When configuring a project with
CXX=clang++ cmake <args>
the default linker appears to be untouched, remaining usr/bin/ld
(on Linux).
Is this possible without using a separate toolchain file?