From 1720970102836c20383b192fca6dbc17ee743392 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 9 Aug 2019 17:41:16 +0200 Subject: [PATCH] Fix resource prefix calculation tools/qml/qml.qrc uses prefix="something", which means that the leading slash is implied. Change-Id: Ia856fcef36873442a84b9162f1901cb31ca37b49 Reviewed-by: Alexandru Croitor --- util/cmake/pro2cmake.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 0b81cb10e1..767a2b4371 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -153,6 +153,8 @@ def process_qrc_file(target: str, filepath: str, base_dir: str = '', project_fil assert(resource.tag == 'qresource') lang = resource.get('lang', '') prefix = resource.get('prefix', '/') + if not prefix.startswith('/'): + prefix = '/' + prefix full_resource_name = resource_name + (str(resource_count) if resource_count > 0 else '')