Skip to content
Snippets Groups Projects
Commit 7664adbc authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Look for folders "test", not "test*".

Before this commit it matched e.g. "test1" and failed finding the directory "test".
parent 7bfcf64a
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
cmake_policy(SET CMP0009 NEW)
file(GLOB_RECURSE makefiles RELATIVE ${RELPATH} "CMakeLists.txt")
foreach(_file ${makefiles})
string(REGEX MATCH ".*/test" _testdir ${_file})
string(REGEX MATCH ".*/test$" _testdir ${_file})
if(_testdir)
list(APPEND _makefiles ${_testdir})
endif(_testdir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment