build(grantlee): fix injected Test find_package to use 'find_package(Qt6 COMPONENTS Test REQUIRED)'
This commit is contained in:
1 parent
74fc7a6d05
commit
ddc3b7e542
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user