[CMake] TRY_RUN wrong program return value with --debug-compile
Bill Hoffman
bill.hoffman at kitware.com
Tue Jun 3 22:55:25 EDT 2008
Eduardo Alberto Hernández Muñoz wrote:
> I understand that unpredictable results can come from running a cmake
> file with try_run more than once.
>
> However I usually delete the contents of the binary directory, where
> the files are stored after try_run; after your reply, I also tried
> deleting the CMakeCache.txt and CMakeFiles/ directory in the source
> directory in addition to deleting the contents of the binary
> directory. The problem persists.
>
> On the other hand, your advice on modifying the cache works well, so
> now I can go on with debugging. =] (dumb me, should have tried that).
> On the other hand, I'm not sure if I should fill a bug or not, since
> the problem happens even on the first try.
If you can create a small example that shows your problem please create
a bug report. I thought you were going to create a bug on
--debug-trycompile not working.
-Bill
More information about the CMake
mailing list