tests: 'default' 'default_output_format' if none

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
This commit is contained in:
Scott Kostyshak 2013-08-05 06:47:02 -04:00
parent 1052732e66
commit 1d3e77b515

View File

@ -99,11 +99,12 @@ endif()
macro(getoutputformats filepath varname) macro(getoutputformats filepath varname)
file(STRINGS "${filepath}" lines) 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}) foreach(_l ${lines})
if(_l MATCHES "^\\\\default_output_format +\([^ ]+\)") if(_l MATCHES "^\\\\default_output_format +\([^ ]+\)")
if(CMAKE_MATCH_1 STREQUAL "default") if(CMAKE_MATCH_1 STREQUAL "default")
set(found "xhtml" "pdf" "pdf2" "pdf5") set(found ${out_formats})
elseif(CMAKE_MATCH_1 STREQUAL "xhtml") elseif(CMAKE_MATCH_1 STREQUAL "xhtml")
set(found "xhtml") set(found "xhtml")
else() else()