build(grantlee): fix injected Test find_package to use 'find_package(Qt6 COMPONENTS Test REQUIRED)'

This commit is contained in:
Copilot authored and Torsten Wierschin committed 2026-07-20 19:03:01 +02:00
1 parent 74fc7a6d05
commit ddc3b7e542
1 file changed
+1 -1
+1 -1
View File
@@ -73,7 +73,7 @@ for p in Path('.').rglob('*'):
try:
s = p.read_text()
if 'Qt6::Test' in s and 'find_package(Qt6 Test' not in s:
s = 'find_package(Qt6 Test REQUIRED)\n' + s
s = 'find_package(Qt6 COMPONENTS Test REQUIRED)\n' + s
p.write_text(s)
print('Inserted find_package(Qt6 Test REQUIRED) in', p)
except Exception as e: