[Cdash] ctest_empty_binary_directory()
Chris Hillery
chillery+cmake at lambda.nu
Mon Jun 21 19:46:38 UTC 2010
CTEST_EMPTY_BINARY_DIRECTORY is intended to clear out the entire build
directory prior to a build. I'm not sure what tests it does to be sure
nothing bad happens, but they probably are the reason that it's not deleting
an arbitrary directory for you.
If you just want to delete a directory and its contents, use FILE
(REMOVE_RECURSE) (which works in cmake or ctest).
Ceej
aka Chris Hillery
On Mon, Jun 21, 2010 at 11:51 AM, Larry Procter <larry at transpireinc.com>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.
>
> Before anyone asks, the script is being run as an administrator on a
> directory owned by the administrator as well as the fact that all the
> CMake/Ctest code runs as the administrator.
>
> Any help would be appreciated,
>
> Larry
>
>
> _______________________________________________
> Cdash mailing list
> Cdash at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/cdash
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cdash/attachments/20100621/38b8dcf9/attachment-0003.htm>
More information about the CDash
mailing list