[CMake] subversion
Andreas Naumann
Andreas-Naumann at gmx.net
Mon Jun 27 12:55:45 EDT 2016
The discussion is interesting and ends with the question, whether the
macro "Subversion_IS_WC" is usable. As I understand the other arguments are
*leave the FATAL_ERROR as default for backwards compatibility
*the suggested patch hides the error message if error_quite is set .
*calling svn info twice is felt to be a waste, if the result is
desired anyway.
So, I would suggest to extend Erik Johanssons patch from
http://www.mail-archive.com/cmake@cmake.org/msg26817.html by storingto
the error message and svn error code in an extra variable.
Than, we have the ability to ignore errors due to "wrong" working
directories and to analyze the error, if the user is interested in the
error.
In my opinion, a hard fail is annoying, because the user is not able to
recover from the error.
Regards,
Andreas
Am 27.06.2016 um 12:57 schrieb Marcel Loose:
>
> See also https://cmake.org/Bug/view.php?id=10200
>
> Cheers,
> Marcel Loose.
>
>
> On 27/06/16 09:23, Andreas Naumann wrote:
>> Thanks for the 6 year old hint. But obviously, the patch is not in
>> any recent cmake version.
>> Therefore, I could use it in my own project and ship my own
>> FindSubversion.cmake.. which is quite ugly.
>> *Gesendet:* Montag, 27. Juni 2016 um 03:11 Uhr
>> *Von:* Nagger <nagger at gmx.de>
>> *An:* cmake at cmake.org
>> *Betreff:* Re: [CMake] subversion
>> Am 24.06.2016 um 19:48 schrieb Andreas Naumann:
>>
>> > At the moment, I check, if my directory is a working copy and if it is
>> > not, the version variable is not defined. In my oppinion, it would be
>> > better, if the macro from the subversion module would simply define a
>> > variable "is_working_directory" instead of failing hard.
>>
>> See https://cmake.org/pipermail/cmake/2010-January/034862.html
>>
>>
>> --
>>
>> Powered by www.kitware.com <http://www.kitware.com>
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Kitware offers various services to support the CMake community. For
>> more information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/cmake
>>
>>
>
>
>
More information about the CMake
mailing list