[CMake] TRY_LINK and CheckCXXSourceLinks ??

David Cole david.cole at kitware.com
Tue Jan 11 07:44:21 EST 2011


Doesn't CheckCXXSourceCompiles link?

I think there's no way to avoid the link in a try_compile...


On Tue, Jan 11, 2011 at 5:49 AM, Marcel Loose <loose at astron.nl> wrote:

> Hi all,
>
> I was wondering how I can check whether I can successfully compile and
> link an executable, without actually running it. CheckCXXSourceCompiles
> checks whether I can compile the code, however linking could still fail.
> CheckCXXSourceRuns OTOH also tries to run the executable, which causes
> problems when cross-compiling. So, why is there no CheckCXXSourceLinks?
>
> Best regards,
> Marcel Loose.
>
>
>
> --
> Marcel Loose
> Senior Software Engineer, Computing Group R&D, Astron, the Netherlands
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110111/8a1886d7/attachment.htm>


More information about the CMake mailing list