]> git.lyx.org Git - features.git/commitdiff
Tests: take into account a default format of xhtml
authorScott Kostyshak <skostysh@lyx.org>
Mon, 4 Mar 2013 12:10:46 +0000 (07:10 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Mon, 4 Mar 2013 12:15:52 +0000 (07:15 -0500)
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

index e1f3c2548abbb625111797f687b523e84fe3eae9..9557fad59bfb54c575968b660374a596a4c44e0f 100644 (file)
@@ -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()