From 58a2f250b68738665e6f57b0e9ce5fc38f42141d Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Mon, 8 Apr 2019 16:39:50 +0200 Subject: [PATCH] Cmake export tests: Do not compile Minted files converted to lyx22 format --- development/autotests/export.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/development/autotests/export.cmake b/development/autotests/export.cmake index 84857cd26f..39ddd844cb 100755 --- a/development/autotests/export.cmake +++ b/development/autotests/export.cmake @@ -167,6 +167,9 @@ if (extension MATCHES "\\.lyx$") # files with relative path message(STATUS "Not exporting due to missing \\origin statement") break() + elseif(format MATCHES "lyx22x" AND file MATCHES "Minted") + message(STATUS "Not exporting due to missing minted support") + break() endif() message(STATUS "Source(${LYX_SOURCE}) and dest(${result_file_name}) are equal") message(STATUS "Now try to export the lyx2lyx created file") @@ -254,7 +257,7 @@ if(inverted) else() string(COMPARE NOTEQUAL ${_err} 0 _erg) endif() -#execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${TempDir}") +execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${TempDir}") if(_TestResultMessage) message(STATUS "Msg Summary:") foreach(_l ${_TestResultMessage})