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.<br>
<br>If you just want to delete a directory and its contents, use FILE (REMOVE_RECURSE) (which works in cmake or ctest).<br><br>Ceej<br>aka Chris Hillery<br><br><div class="gmail_quote">On Mon, Jun 21, 2010 at 11:51 AM, Larry Procter <span dir="ltr"><<a href="mailto:larry@transpireinc.com">larry@transpireinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I have tried utilizing the "ctest_empty_binary_directory()" command in a<br>
script that I run via "CTest -S" on Windows XP Pro 64-bit and I can't<br>
seem to remove a directory, much less clean out any files contained<br>
therein. The current documentation is:<br>
<br>
<br>
        ctest_empty_binary_directory: empties the binary directory<br>
          ctest_empty_binary_directory( directory )<br>
<br>
        Removes a binary directory. This command will perform some<br>
        checks prior to deleting the directory in an attempt to avoid<br>
        malicious or accidental directory deletion.<br>
<br>
I have tried providing specific directory names as well as the<br>
${CTEST_BINARY_DIRECTORY}.  I guess I just don't "get" any of the<br>
CMake/CTest/CDash documentation because when I read this, it implies<br>
that one may specify a directory for the "directory" parameter.<br>
<br>
Before anyone asks, the script is being run as an administrator on a<br>
directory owned by the administrator as well as the fact that all the<br>
CMake/Ctest code runs as the administrator.<br>
<br>
Any help would be appreciated,<br>
<br>
Larry<br>
<br>
<br>
_______________________________________________<br>
Cdash mailing list<br>
<a href="mailto:Cdash@public.kitware.com">Cdash@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cdash" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cdash</a><br>
</blockquote></div><br>