[Cdash] ctest_empty_binary_directory()

Alexander Neundorf neundorf at kde.org
Mon Jun 21 20:21:06 UTC 2010

On Monday 21 June 2010, Larry Procter wrote:
> Hello,
> I have tried utilizing the "ctest_empty_binary_directory()" command in a
> script that I run via "CTest -S" on Windows XP Pro 64-bit and I can't
> seem to remove a directory, much less clean out any files contained
> therein. The current documentation is:
>         ctest_empty_binary_directory: empties the binary directory
>           ctest_empty_binary_directory( directory )
>         Removes a binary directory. This command will perform some
>         checks prior to deleting the directory in an attempt to avoid
>         malicious or accidental directory deletion.
> I have tried providing specific directory names as well as the
> ${CTEST_BINARY_DIRECTORY}.  I guess I just don't "get" any of the
> CMake/CTest/CDash documentation because when I read this, it implies
> that one may specify a directory for the "directory" parameter.

Hmm, it works for me.
ctest checks that the given directory contains a CMakeCache.txt, and only then 
removes it.
CTEST_BINARY_DIRECTORY already has a value when you call 
ctest_empty_binary_directory(), right ?


More information about the CDash mailing list