Re: [CMake] TRY_LINK and CheckCXXSourceLinks ??

2011-01-12 Thread Marcel Loose
On 11-1-2011 at 21:51, in message 20110111213036.af4c126...@public.kitware.com, Rolf Eike Beer e...@sf-mail.de wrote: Am Dienstag, 11. Januar 2011, 11:20:06 schrieb David Cole: Yes... this confused me when I first encountered it as well. TRY_COMPILE is misnamed in CMake. In

[CMake] TRY_LINK and CheckCXXSourceLinks ??

2011-01-11 Thread Marcel Loose
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

Re: [CMake] TRY_LINK and CheckCXXSourceLinks ??

2011-01-11 Thread David Cole
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 lo...@astron.nl wrote: Hi all, I was wondering how I can check whether I can successfully compile and link an executable, without actually running

Re: [CMake] TRY_LINK and CheckCXXSourceLinks ??

2011-01-11 Thread Marcel Loose
Hi David, I guess you're right. Further playing with CheckCXXSourceCompiles and investigating the generated CMakeLists.txt file led me to the conclusion that the link step is indeed also performed. I was led astray by the name of the command and my notion that it wraps TRY_COMPILE. Also my

Re: [CMake] TRY_LINK and CheckCXXSourceLinks ??

2011-01-11 Thread David Cole
Yes... this confused me when I first encountered it as well. TRY_COMPILE is misnamed in CMake. In functionality, it's actually a TRY_LINK operation. On Tue, Jan 11, 2011 at 10:59 AM, Marcel Loose lo...@astron.nl wrote: Hi David, I guess you're right. Further playing with

Re: [CMake] TRY_LINK and CheckCXXSourceLinks ??

2011-01-11 Thread Rolf Eike Beer
Am Dienstag, 11. Januar 2011, 11:20:06 schrieb David Cole: Yes... this confused me when I first encountered it as well. TRY_COMPILE is misnamed in CMake. In functionality, it's actually a TRY_LINK operation. Update the doc? Eike signature.asc Description: This is a digitally signed