[LyX/master] Cmake build: Fix the invalid test for '-Wno-deprecated-copy' flag

Kornel Benko kornel at lyx.org
Wed Sep 29 16:50:01 UTC 2021


Am Wed, 29 Sep 2021 18:16:44 +0200
schrieb Jean-Marc Lasgouttes <lasgouttes at lyx.org>:

> Le 29/09/2021 à 17:32, Kornel Benko a écrit :
> > commit c26db650a1e93573e4c09d4612ad45ae1e219854
> > Author: Kornel Benko <kornel at lyx.org>
> > Date:   Wed Sep 29 17:53:50 2021 +0200
> > 
> >      Cmake build: Fix the invalid test for '-Wno-deprecated-copy' flag
> >      
> >      The original test was always successfull, even if the flag was invalid.
> >      But checking for '-Wdeprecated-copy' instead yields to error if the warning does
> > not exist. Existent warning for 'deprecated-copy' implies that 'no-deprecated-copy'
> > also exist.  
> 
> Excellent idea. I stole it.

:)

> JMarc

It was driving me crazy. The test looked correct, still there were warnings about
'unrecognized command line option'.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210929/f96bf506/attachment.asc>


More information about the lyx-devel mailing list