2 macro(CheckLoadErrors lyxerrx PARAMS_DIR res_erg)
3 set(lyxerr ${${lyxerrx}})
7 file(STRINGS "${PARAMS_DIR}/filterCheckWarnings" ignoreRegexp)
8 # Split lyxerr into lines
9 string(REGEX REPLACE "[\n]+" ";" foundErrors ${lyxerr})
10 foreach(_l ${foundErrors})
12 if(_l MATCHES "LyX: Done!")
13 set(ConfigureOutput 0)
16 if(_l MATCHES "reconfiguring user directory")
17 set(ConfigureOutput 1)
20 if(NOT ConfigureOutput)
22 foreach(_r ${ignoreRegexp})
23 if(_l MATCHES "${_r}")
29 message(STATUS "Error line = ${_l}")
30 # It is error, because the error-line does not match
31 # any ignoring expression
37 set(${res_erg} ${_erg})