Cmake export tests: Handle default output format 'pdf2' in manuals like 'default'

This is, because almost all manuals are now having pdf2 as default.
This commit is contained in:
Kornel Benko 2015-12-13 12:31:43 +01:00
parent de4d43e609
commit 3ed174cc03

View 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$")