diff --git a/src/tex2lyx/test/runtests.cmake b/src/tex2lyx/test/runtests.cmake index 3e19ffb270..863490b267 100644 --- a/src/tex2lyx/test/runtests.cmake +++ b/src/tex2lyx/test/runtests.cmake @@ -20,7 +20,6 @@ set(ENV{${LYX_USERDIR_VER}} ${LYX_TESTS_USERDIR}) message(STATUS "SCRIPT_DIR = ${SCRIPT_DIR}") -file(TIMESTAMP "${SCRIPT_DIR}/../configure.py" _config_time "%Y%j%H%M%S") set(_configure_needed FALSE) foreach(_f lyxrc.defaults lyxmodules.lst textclass.lst packages.lst) if(NOT EXISTS "${LYX_TESTS_USERDIR}/${_f}") @@ -28,8 +27,7 @@ foreach(_f lyxrc.defaults lyxmodules.lst textclass.lst packages.lst) set(_configure_needed TRUE) break() endif() - file(TIMESTAMP "${LYX_TESTS_USERDIR}/${_f}" _ftime "%Y%j%H%M%S") - if(_config_time STRGREATER _ftime) + if("${SCRIPT_DIR}/../configure.py" IS_NEWER_THAN "${LYX_TESTS_USERDIR}/${_f}") message(STATUS "Configure needed, because \"${LYX_TESTS_USERDIR}/${_f}\" too old") set(_configure_needed TRUE) break()