[CMake] [PATCH] support for CTEST_INITIAL_CACHE in new-style ctest script
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Nov 12 19:33:10 EST 2008
Hi,
the attached patch adds support for the CTEST_INITIAL_CACHE variable when
using new-style ctest commands.
Now ctest_configure() checks the CTEST_INITIAL_CACHE variable and if it is not
empty, AND there is no CMakeCache.txt yet, it writes the initial
CMakeCache.txt
I had a look at the code of the old-style ctest script, it seems there any
existing CMakeCache.txt is overwritten if CTEST_INITIAL_CACHE is set. Is this
correct ? Is this behaviour also wanted for the new-style commands ?
I think it is not necessary, because if I want to have a fresh cmake run, I
can use ctest_empty_binary_directory() before, then I will also get the
initial cache again.
What do you think ?
Ok to commit ?
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctest_initial_cache.diff
Type: text/x-diff
Size: 7281 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081113/3e746ee1/attachment.diff>
More information about the CMake
mailing list