[CMake] Subversion_WC_INFO macro should not do SEND_ERROR

David Cole david.cole at kitware.com
Mon Jan 25 10:06:27 EST 2010


On Mon, Jan 25, 2010 at 7:37 AM, Marcel Loose <loose at astron.nl> wrote:

> Hi all,
>
> IMHO the macro Subversion_WC_INFO in FindSubversion.cmake should not do
> a SEND_ERROR, when the 'svn info' command fails. This makes the macro
> useless if you want to be able to use it both on SVN working copies and
> SVN exported trees. Either make this behaviour configurable, or change
> it to STATUS (or WARNING, but that's not supported for CMake < 2.8)
>
> Best regards,
> Marcel Loose.
>

As the "_WC_" in the macro name implies, it only works on working copies.
You can call it conditionally based on whether the ".svn/" directory exists
at the root of your source tree. Just a heuristic, but will probably work
99%+ of the time for you...

HTH,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100125/3955d154/attachment.htm>


More information about the CMake mailing list