Asking around here at NVIDIA, it looks like you can replace the linker in VS 2010 (MSBuild probably has the ability), but VS 2008 doesn&#39;t support this.<br><br><div class="gmail_quote">On Wed, Jun 20, 2012 at 12:53 PM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The VS generator does not use that variable, and I don&#39;t know the exact answer to how this is computed everywhere...<div>

<br></div><div>But I strongly suspect that VS simply uses &quot;link.exe&quot; and uses the first one found within whatever environment is set up in Visual Studio.</div>
<div><br></div><div>To see the environment that is available at build time, you could add a custom target like this:</div><div><br></div><div>  add_custom_target(EchoEnv ${CMAKE_COMMAND} -E environment)</div><div><br></div>


<div><br></div><div>HTH,</div><div>David</div><div><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Jun 20, 2012 at 2:45 PM, James Bigler <span dir="ltr">&lt;<a href="mailto:jamesbigler@gmail.com" target="_blank">jamesbigler@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Is it possible to change what executable is used for linking in VS targets?<br><br>I see CMAKE_LINKER, but the variable says &quot;CMAKE_LINKER-NOTFOUND&quot;, which leads me to believe that the VS generator doesn&#39;t use this variable.<br>




<br>Thanks,<br>James<br>
<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></font></span></blockquote></div><br></div>
</blockquote></div><br>