]> git.lyx.org Git - features.git/commitdiff
Cmake export tests: Handle default output format 'pdf2' in manuals like 'default'
authorKornel Benko <kornel@lyx.org>
Sun, 13 Dec 2015 11:31:43 +0000 (12:31 +0100)
committerKornel Benko <kornel@lyx.org>
Sun, 13 Dec 2015 11:31:43 +0000 (12:31 +0100)
This is, because almost all manuals are now having pdf2 as default.

development/autotests/ExportTests.cmake

index 6c5e4946417beafbad34dee605bd764bf4e02d54..c14dd9673951a43addb9e2a5adc32628dcd7d087 100644 (file)
@@ -54,6 +54,8 @@ macro(getoutputformats filepath varname)
       set(_format ${CMAKE_MATCH_1})
       if(_format STREQUAL "default")
         set(out_formats "xhtml" ${DVI_FORMATS} ${PDF_FORMATS})
+      elseif(_format STREQUAL "pdf2" AND "${filepath}" MATCHES "/doc/")
+        set(out_formats "xhtml" ${DVI_FORMATS} ${PDF_FORMATS})
       elseif(_format MATCHES "pdf$")
         set(out_formats "xhtml" ${PDF_FORMATS})
       elseif(_format MATCHES "dvi$")