Cmake tests: Test pdf exports honoring the default output format

The variable 'out_formats' was not set correctly in this case.
This commit is contained in:
Kornel Benko 2015-04-01 11:50:31 +02:00
parent 82b392eb0d
commit db7b1acd54

View 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