mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
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.
This commit is contained in:
parent
bf0b5540db
commit
cc30e79c32
@ -55,6 +55,8 @@ macro(getdefaultoutputformat filepath varname)
|
|||||||
set(found ${CMAKE_MATCH_1})
|
set(found ${CMAKE_MATCH_1})
|
||||||
if(found STREQUAL "default")
|
if(found STREQUAL "default")
|
||||||
set(found "pdf" "pdf2" "pdf5")
|
set(found "pdf" "pdf2" "pdf5")
|
||||||
|
elseif(found STREQUAL "xhtml")
|
||||||
|
set(found "") # we test xhtml regardless of default format
|
||||||
endif()
|
endif()
|
||||||
set(${varname} ${found})
|
set(${varname} ${found})
|
||||||
break()
|
break()
|
||||||
|
Loading…
Reference in New Issue
Block a user