CMake: Fix build

Amends: d284974274

Change-Id: I74f659722567b2c90f5ecc437d55369ab1b7919c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Marcus Tillmanns
2025-04-24 14:52:57 +02:00
parent accd2609da
commit eed9660b2b

View File

@@ -1109,7 +1109,7 @@ static Result<bool> insertDependencies(
*cmakeListFile, *cmakeListFile,
[qtPackage](const auto &func) { [qtPackage](const auto &func) {
return func.LowerCaseName() == "find_package" && func.Arguments().size() > 0 return func.LowerCaseName() == "find_package" && func.Arguments().size() > 0
&& func.Arguments()[0].Value == qtPackage; && func.Arguments()[0].Value == qtPackage.toStdString();
}, },
/* reverse = */ true); /* reverse = */ true);
@@ -1137,7 +1137,7 @@ static Result<bool> insertDependencies(
*cmakeListFile, *cmakeListFile,
[targetName](const auto &func) { [targetName](const auto &func) {
return func.LowerCaseName() == "target_link_libraries" && func.Arguments().size() > 0 return func.LowerCaseName() == "target_link_libraries" && func.Arguments().size() > 0
&& func.Arguments()[0].Value == targetName; && func.Arguments()[0].Value == targetName.toStdString();
}, },
/* reverse = */ true); /* reverse = */ true);