Use GLOB_RECURSE for testdata
Use GLOB_RECURSE for testdata instead of globbing the top level folder. Although RCC supports scanning directories, it will result in alias collosions and test not being able to find the files on platforms where test data is embedded into the binary. Change-Id: I35d3d46a5d9fcafa5c8dc833eafdd0044ffe355f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
753e7c1061
commit
103d1aa910
@ -1883,8 +1883,7 @@ def write_main_part(cm_fh: typing.IO[str], name: str, typename: str,
|
||||
for data in test_data:
|
||||
if '*' in data:
|
||||
cm_fh.write(dedent("""
|
||||
{indent}file(GLOB test_data_glob
|
||||
{indent1}LIST_DIRECTORIES true
|
||||
{indent}file(GLOB_RECURSE test_data_glob
|
||||
{indent1}RELATIVE ${{CMAKE_CURRENT_SOURCE_DIR}}
|
||||
{indent1}"{}")
|
||||
""").format(
|
||||
|
Loading…
x
Reference in New Issue
Block a user