title: Using LLVM linker when using Clang & CMake
body: <p>What's the best way to tell CMake to use the LLVM linker <code>llvm-link</code> instead of GNU <code>ld</code> as linker? When configuring a project with</p>
  
  <pre><code>CXX=clang++ cmake &lt;args&gt;
  </code></pre>
  
  <p>the default linker appears to be untouched, remaining <code>usr/bin/ld</code> (on Linux).</p>
  
  <p>Is this possible without <a href="http://mhungerford.blogspot.com/2010/10/cmake-and-clangllvm-fun.html">using a separate toolchain file</a>?</p>