]> git.lyx.org Git - lyx.git/blobdiff - development/autotests/ExportTests.cmake
Cmake tests: Make foreach() command robust
[lyx.git] / development / autotests / ExportTests.cmake
index 3b520585e799c4b64344585d315e52b0fa48575d..bd34376993b79b7b4eea1dc5a854014294858221 100644 (file)
@@ -53,7 +53,7 @@ macro(getoutputformats filepath varname format_set)
   # What should we test, if default_output_format is not defined?
   # For now we test everything ...
   set(out_formats "xhtml" ${DVI_FORMATS} ${PDF_FORMATS})
-  foreach(_l ${lines})
+  foreach(_l IN LISTS lines)
     if(_l MATCHES "^\\\\default_output_format +\([^ ]+\)")
       set(_format ${CMAKE_MATCH_1})
       if(_format STREQUAL "default")