]> git.lyx.org Git - features.git/commitdiff
Cmake build: White space + simplification
authorKornel Benko <kornel@lyx.org>
Sun, 5 Jan 2014 09:02:29 +0000 (10:02 +0100)
committerKornel Benko <kornel@lyx.org>
Sun, 5 Jan 2014 09:02:29 +0000 (10:02 +0100)
development/autotests/check_load.cmake
development/autotests/export.cmake

index 967bb66989f731bf333f0c611b01a273d0ca0725..4a22a27fa4f756b2753fc595d20ead8c9e8c69d0 100644 (file)
@@ -17,7 +17,7 @@
 #       -P "${TOP_SRC_DIR}/development/autotests/check_load.cmake"
 #
 
-message(STATUS "Executing ${lyx} -batch ${LYXFILE}")
+message(STATUS "Executing ${lyx} -batch -userdir \"${LYX_TESTS_USERDIR}\" ${LYXFILE}")
 set(ENV{${LYX_USERDIR_VER}} "${LYX_TESTS_USERDIR}")
 set(ENV{LANG} "en") # to get all error-messages in english
 
@@ -39,21 +39,18 @@ if(lyxerr)
   string(REGEX REPLACE "[\n]+" ";" foundErrors ${lyxerr})
   foreach(_l ${foundErrors})
     if(ConfigureOutput)
-      string(REGEX MATCHALL "LyX: Done!" _match ${_l})
-      if(_match)
+      if(_l MATCHES "LyX: Done!")
         set(ConfigureOutput 0)
       endif()
     else()
-      string(REGEX MATCHALL "reconfiguring user directory" _match ${_l})
-      if(_match)
+      if(_l MATCHES "reconfiguring user directory")
         set(ConfigureOutput 1)
       endif()
     endif()
     if(NOT ConfigureOutput)
       set(found 0)
       foreach(_r ${ignoreRegexp})
-        string(REGEX MATCHALL "${_r}" _match ${_l})
-        if(_match)
+        if(_l MATCHES "${_r}")
           set(found 1)
           break()
         endif()
index 647b9ddc6eea195ed3aca2c445cdecdd50119512..56a3e82582ec40d2ddbdddaa662a9499a3093a7c 100755 (executable)
@@ -6,7 +6,7 @@
 #
 # LYX_ROOT  = ${TOP_SRC_DIR}/lib/{doc,examples,templates}
 # LYX_USERDIR_VER = Name of environment variable for the user directory
-# lyx       = 
+# lyx       =
 # format    = lyx16x|xhtml
 # extension = 16.lyx|xhtml
 # file      = xxx