[LyX/master] Cmake tests: Make foreach() command robust

Kornel Benko kornel at lyx.org
Sun Dec 15 13:10:39 UTC 2019


Am Sun, 15 Dec 2019 13:50:54 +0100 (CET)
schrieb Kornel Benko <kornel at lyx.org>:

> commit 7b44280da4fc015a4a930c311cc6073cebacf738
> Author: Kornel Benko <kornel at lyx.org>
> Date:   Sun Dec 15 13:38:23 2019 +0100
> 
>     Cmake tests: Make foreach() command robust
>     
>     Cmake's foreach command includes forms
>       foreach(<loop_var> IN LISTS <lists>)
>       foreach(<loop_var> IN ITEMS <items>)
>       foreach(<loop_var> RANGE ...)
>     We get the lines to be parsed by
>       file(STRINGS "${filepath}" lines)
>     If in the parsed lyx-file there is a line
>     containing only the single word 'IN',  or 'RANGE', then
>     the command
>       foreach(_l ${lines})
>     can create a syntax error (at least with cmake1.16)
>     
>     In fact, in file pl_Additional.lyx:12913 happens to have
>     such a beast.
> ---
>  development/autotests/ExportTests.cmake |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 

Candidate for 2.3.x. In fact onlyy 2.3.x needs it, because master
does not handle files in attic directory and pl_Additional.lyx is in such a
directory.

	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/20191215/d634c151/attachment.asc>


More information about the lyx-devel mailing list