lyx_mirror/development
Kornel Benko 7b44280da4 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.
2019-12-15 13:59:33 +01:00
..
2019-08-29 10:54:02 +02:00
2019-03-31 00:15:52 +01:00
2015-10-01 22:06:01 +01:00
2011-04-03 13:38:05 +00:00
2019-09-04 16:51:52 +02:00
2019-10-20 23:26:08 +02:00
2019-08-30 08:27:34 +02:00
2012-06-05 12:22:13 +02:00
2014-12-08 13:15:06 +01:00