Doesn&#39;t CheckCXXSourceCompiles link?<br><br>I think there&#39;s no way to avoid the link in a try_compile...<br><br><br><div class="gmail_quote">On Tue, Jan 11, 2011 at 5:49 AM, Marcel Loose <span dir="ltr">&lt;<a href="mailto:loose@astron.nl">loose@astron.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi all,<br>
<br>
I was wondering how I can check whether I can successfully compile and<br>
link an executable, without actually running it. CheckCXXSourceCompiles<br>
checks whether I can compile the code, however linking could still fail.<br>
CheckCXXSourceRuns OTOH also tries to run the executable, which causes<br>
problems when cross-compiling. So, why is there no CheckCXXSourceLinks?<br>
<br>
Best regards,<br>
Marcel Loose.<br>
<br>
<br>
<br>
--<br>
Marcel Loose<br>
Senior Software Engineer, Computing Group R&amp;D, Astron, the Netherlands<br>
<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>
</blockquote></div><br>