CMake export tests now correctly check return code

This commit is contained in:
Scott Kostyshak 2013-01-20 20:36:42 -05:00
parent db025be5ae
commit d31aef689a

View File

@ -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()