[CMake] python DeprecationWarning marked as error

Tyler Roscoe tyler at cryptio.net
Tue May 11 12:13:58 EDT 2010


On Fri, May 07, 2010 at 01:55:44PM -0700, Tyler Roscoe wrote:
> I have the following warning in my project build:
> 
> /.../rs/sdk/trunk/internalheaders/minorrev/_build/util/svnutils.py:34:
> DeprecationWarning: os.popen4 is deprecated.  Use the subprocess module.
> 
>   infile, lines = os.popen4("svn info --non-interactive %s" %
> workingCopyPathOrRepositoryURL)
> 
> 
> This warning is marked as an error in CDash. Shall I open a bug? Is
> there a workaround to explain to CTest that this output is not an error?

I opened http://public.kitware.com/Bug/view.php?id=10703 for this
problem. I also included a workaround:

set (CTEST_CUSTOM_ERROR_EXCEPTION "DeprecationWarning")

Thanks,
tyler


More information about the CMake mailing list