]> git.lyx.org Git - lyx.git/commitdiff
tests: 'default' 'default_output_format' if none
authorScott Kostyshak <skostysh@lyx.org>
Mon, 5 Aug 2013 10:47:02 +0000 (06:47 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Mon, 5 Aug 2013 23:24:11 +0000 (19:24 -0400)
When deciding which output formats to test, if we do not find a
'default_output_format' we assume it is set to 'default'.

For discussion, see:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg180536.html

development/autotests/CMakeLists.txt

index e4720f44ca0721589f95d9e856ba80cbeb7b74aa..ecb49b59fc9728a15f4fd4e527cfbe97eeea6631 100644 (file)
@@ -99,11 +99,12 @@ endif()
 
 macro(getoutputformats filepath varname)
   file(STRINGS "${filepath}" lines)
-  set(${varname} "pdf") # try at least this one
+  set(out_formats "xhtml" "pdf" "pdf2" "pdf5")
+  set(${varname} ${out_formats})
   foreach(_l ${lines})
     if(_l MATCHES "^\\\\default_output_format +\([^ ]+\)")
       if(CMAKE_MATCH_1 STREQUAL "default")
-        set(found "xhtml" "pdf" "pdf2" "pdf5")
+        set(found ${out_formats})
       elseif(CMAKE_MATCH_1 STREQUAL "xhtml")
         set(found "xhtml")
       else()