[CMake] Performing cleanup after build

NoRulez norulez at me.com
Mon Aug 22 08:37:34 EDT 2011


Hi,

sorry, but yes, I meant from "ctest -S".

Thanks for the answer
Best Regards

Am 22.08.2011 um 14:24 schrieb David Cole <david.cole at kitware.com>:

> In what context? A "ctest -S" script? Or something else?
> 
> You can use "file(REMOVE_RECURSE "${CTEST_BINARY_DIRECTORY}/Testing")"
> from a ctest -S script.
> 
> You'd have to call it before ctest_start, though, because that's what
> writes the Testing/TAG file that saves the build stamp for the rest of
> the ctest commands to read so they know what the current build stamp
> is...
> 
> 
> HTH,
> David
> 
> 
> On Sun, Aug 21, 2011 at 1:19 PM, NoRulez <norulez at me.com> wrote:
>> Hi,
>> 
>> 
>> 
>> is there a way or command to clean up the “Testing” directory after a build
>> (or after 10 builds)?
>> 
>> The thing is that the “Testing” directory grows up and I don’t want to
>> remove the files manually
>> 
>> 
>> 
>> Thanks in advance
>> 
>> 
>> 
>> Best Regards
>> 
>> NoRulez
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 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
>> 


More information about the CMake mailing list