Cmake tests: Another case of using temporary files

Ctest misinterprets '#' in filenames as comment start,
This commit is contained in:
Kornel Benko 2017-10-08 11:00:41 +02:00
parent 54df2f5446
commit 23e67a3829

View File

@ -312,11 +312,15 @@ foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates autote
set(lang_lyx_files)
set(nolang_lyx_files)
foreach(f ${lyx_files})
string(REGEX MATCHALL "^[a-z][a-z](_[A-Z][A-Z])?\\/" _v ${f})
if(_v)
list(APPEND lang_lyx_files ${f})
if (${f} MATCHES "#")
# Do nothing, probably wrong temporary file
else()
list(APPEND nolang_lyx_files ${f})
string(REGEX MATCHALL "^[a-z][a-z](_[A-Z][A-Z])?\\/" _v ${f})
if(_v)
list(APPEND lang_lyx_files ${f})
else()
list(APPEND nolang_lyx_files ${f})
endif()
endif()
endforeach()
foreach(f ${nolang_lyx_files} ${lang_lyx_files})