summaryrefslogtreecommitdiffstats
path: root/util/cmake
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2019-09-19 16:01:09 +0200
committerLeander Beernaert <leander.beernaert@qt.io>2019-09-19 14:06:38 +0000
commitcd88c30ce3ca81a1efb89aeb5fa7fc7f1287aa0f (patch)
treef13a2c8b7c4f038992b898b18d705a4008a96046 /util/cmake
parent7e91bd1f27ddd6949001b731f871660c2aba06e7 (diff)
Fix formatting for test data
Add missing f parameter and globbing expression. Change-Id: I0eedb59e47537f9cf42a0b9d9471ddfc87ee48f2 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'util/cmake')
-rwxr-xr-xutil/cmake/pro2cmake.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index b79e1f97cf..2985b3a4b1 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -2423,10 +2423,10 @@ def write_main_part(
if "*" in data:
cm_fh.write(
dedent(
- """
+ f"""\
{spaces(indent)}file(GLOB_RECURSE test_data_glob
{spaces(indent+1)}RELATIVE ${{CMAKE_CURRENT_SOURCE_DIR}}
- {spaces(indent+1)}"{}")
+ {spaces(indent+1)}{data})
"""
)
)