[CMake] Re: Bug with cmake's `--debug-trycompile' option?
Clark J. Wang
dearvoid at gmail.com
Wed Dec 19 23:55:10 EST 2007
On Dec 19, 2007 12:35 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> Clark J. Wang wrote:
> > Anybody has any idea?
> >
> > On Dec 11, 2007 5:07 PM, Clark J. Wang <dearvoid at gmail.com
> > <mailto:dearvoid at gmail.com>> wrote:
> >
> > I
> > This is fine for `sys/event.h' is not available on my system. But
> > when I run `cmake --debug-trycompile .' it outputed like this:
> >
> >
> > This time it said that `sys/event.h' was found! Anything wrong?
> >
>
> I am not surprised. The debug-try compile option does not clean out the
> build tree. It is meant as a debugging tool only. It should not be
> expected to work. Usually, if there is trouble with the result of a try
> compile, you set it up so that only that one try compile will happen and
> run with debug-trycompile. Then cmake will leave the build/source files
> in the temp directory, so you can try it by hand, and examine the results.
>
Debugging options are used for debugging, that's right. But I don't agree
that CMake can give wrong results when run in debug mode. Take the
`--debug-trycompile' option for example, CMake can leave separate
build/source files with different filenames in the temp directory for each
call of TRY_COMPILE.
>
> -Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071220/a3b3dd60/attachment.html
More information about the CMake
mailing list