diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 0b81cb10e18..767a2b4371c 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 '')