mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Cmake tests: Another case of using temporary files
Ctest misinterprets '#' in filenames as comment start,
This commit is contained in:
parent
54df2f5446
commit
23e67a3829
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user