From cc30e79c32c7b705d881b272c17d52655a1597d2 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Mon, 4 Mar 2013 07:10:46 -0500 Subject: [PATCH] Tests: take into account a default format of xhtml The xhtml format is always tested, regardless of the default format. Without this, if the default format is xhtml, CMake gives an error when trying to add the xhtml test because it was already added. --- development/autotests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/development/autotests/CMakeLists.txt b/development/autotests/CMakeLists.txt index e1f3c2548a..9557fad59b 100644 --- a/development/autotests/CMakeLists.txt +++ b/development/autotests/CMakeLists.txt @@ -55,6 +55,8 @@ macro(getdefaultoutputformat filepath varname) set(found ${CMAKE_MATCH_1}) if(found STREQUAL "default") set(found "pdf" "pdf2" "pdf5") + elseif(found STREQUAL "xhtml") + set(found "") # we test xhtml regardless of default format endif() set(${varname} ${found}) break() -- 2.39.2