mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Cmake export lyx* tests: Omit compilation of lyx16x, lyx20x and lyx21x exported files
These file don't contain the \\origin tag. So the possibly included files with relative path would not be found. The compilation to the default pdf would then anyway fail.
This commit is contained in:
parent
8502e6c476
commit
70dac835d3
@ -133,7 +133,19 @@ if (extension MATCHES "\\.lyx$")
|
||||
endif()
|
||||
# Check if result file identical to source file
|
||||
if(result_md5sum STREQUAL ${source_md5sum})
|
||||
if (format MATCHES "lyx(1[0-9]|2[01])x")
|
||||
# Do not compile, missing \origin statement prevents inclusion of
|
||||
# files with relative path
|
||||
message(STATUS "Not exporting due to missing \\origin statement")
|
||||
break()
|
||||
endif()
|
||||
message(STATUS "Source(${LYX_SOURCE}) and dest(${result_file_name}) are equal")
|
||||
message(STATUS "Now try to export the lyx2lyx created file")
|
||||
message(STATUS "Executing ${lyx} -userdir \"${LYX_TESTS_USERDIR}\" -E default \"${result_file_name}.default\" \"${result_file_name}\"")
|
||||
execute_process(
|
||||
COMMAND ${lyx} -userdir "${LYX_TESTS_USERDIR}" -E default "${result_file_name}.default" "${result_file_name}"
|
||||
RESULT_VARIABLE _err
|
||||
ERROR_VARIABLE lyxerr)
|
||||
break()
|
||||
else()
|
||||
message(STATUS "Source(${LYX_SOURCE}) and dest(${result_file_name}) are still different")
|
||||
|
Loading…
Reference in New Issue
Block a user