mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
CMake export tests now correctly check return code
This commit is contained in:
parent
db025be5ae
commit
d31aef689a
@ -25,7 +25,7 @@ execute_process(
|
||||
COMMAND ${lyx} -E ${format} ${file}.${extension} "${LYX_ROOT}/${file}.lyx"
|
||||
RESULT_VARIABLE _err)
|
||||
string(COMPARE NOTEQUAL ${_err} 0 _erg)
|
||||
if(erg)
|
||||
if(_erg)
|
||||
message(STATUS "Exporting ${f}.lyx to ${format}")
|
||||
message(FATAL_ERROR "Export failed")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user