]> git.lyx.org Git - features.git/commitdiff
Cmake tests: Test pdf exports honoring the default output format
authorKornel Benko <kornel@lyx.org>
Wed, 1 Apr 2015 09:50:31 +0000 (11:50 +0200)
committerKornel Benko <kornel@lyx.org>
Wed, 1 Apr 2015 09:50:31 +0000 (11:50 +0200)
The variable 'out_formats' was not set correctly in this case.

development/autotests/ExportTests.cmake

index cd8b45e21770b5eaac26c38e66c19c44499007fd..4dfea2c34182eb95f400e5b1ba87397f237ee786 100644 (file)
@@ -46,9 +46,9 @@ macro(getoutputformats filepath varname)
       set(_format ${CMAKE_MATCH_1})
       if(_format STREQUAL "default")
         set(out_formats "xhtml" ${DVI_FORMATS} ${PDF_FORMATS})
-      elseif(_format MATCHES "pdf")
-        set(found "xhtml" ${PDF_FORMATS})
-      elseif(_format MATCHES "dvi")
+      elseif(_format MATCHES "pdf$")
+        set(out_formats "xhtml" ${PDF_FORMATS})
+      elseif(_format MATCHES "dvi$")
         set(out_formats "xhtml" ${DVI_FORMATS})
       else()
         # Respect all other output formats