From 6ff123be879bcb8d476c11af44a36624e2b626aa Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 23 Sep 2019 10:27:00 +0200 Subject: pro2cmake: Ignore generated .qrc files ...instead of complaining about non-existing files. qtscxml/tests/auto/scion/scion.pro has RESOURCES = $$OUT_PWD/scion.qrc Change-Id: I5737fe5078c87689152fc7fa0d8d25ddc2b1a00f Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann --- util/cmake/pro2cmake.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 797844f7d5..649aacc28d 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -2273,6 +2273,9 @@ def write_resources(cm_fh: IO[str], target: str, scope: Scope, indent: int = 0, skip_qtquick_compiler = r in qtquickcompiler_skipped retain_qtquick_compiler = r in qtquickcompiler_retained if r.endswith(".qrc"): + if "${CMAKE_CURRENT_BINARY_DIR}" in r: + cm_fh.write(f"#### Ignored generated resource: {r}") + continue qrc_output += process_qrc_file( target, r, -- cgit v1.2.3