Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(app): add missing Qt components to find_package #1644

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

badshah400
Copy link
Contributor

Fixes #1643.

Starting from Qt 6.7.2 it is necessary to list all necessary components for Qt6 rather than deferring them. This commit fixes a build failure when cmake configures a build against Qt >= 6.7.2, where we otherwise see a failure like:

[   14s] CMake Error at
/usr/lib64/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:259 (message):
[   14s]   The Concurrent target is mentioned as a dependency for
Registry, but not
[   14s]   declared.
[   14s] Call Stack (most recent call first):
[   14s]   /usr/lib64/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:228
(__qt_internal_walk_libs)
[   14s]   /usr/lib64/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:311
(__qt_internal_walk_libs)
[   14s]   /usr/lib64/cmake/Qt6Core/Qt6CoreMacros.cmake:651
(__qt_internal_collect_all_target_dependencies)
[   14s]   /usr/lib64/cmake/Qt6Core/Qt6CoreMacros.cmake:774
(_qt_internal_finalize_executable)
[   14s]   /usr/lib64/cmake/Qt6Core/Qt6CoreMacros.cmake:590:EVAL:1
(qt6_finalize_target)
[   14s]   src/app/CMakeLists.txt:DEFERRED

and so on for all missing components.

Fixes zealdocs#1643.

Starting from Qt 6.7.2 it is necessary to list all necessary components
for Qt6 rather than deferring them. This commit fixes a build failure
when cmake configures a build against Qt >= 6.7.2, where we otherwise
see a failure like:

```
[   14s] CMake Error at
/usr/lib64/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:259 (message):
[   14s]   The Concurrent target is mentioned as a dependency for
Registry, but not
[   14s]   declared.
[   14s] Call Stack (most recent call first):
[   14s]   /usr/lib64/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:228
(__qt_internal_walk_libs)
[   14s]   /usr/lib64/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:311
(__qt_internal_walk_libs)
[   14s]   /usr/lib64/cmake/Qt6Core/Qt6CoreMacros.cmake:651
(__qt_internal_collect_all_target_dependencies)
[   14s]   /usr/lib64/cmake/Qt6Core/Qt6CoreMacros.cmake:774
(_qt_internal_finalize_executable)
[   14s]   /usr/lib64/cmake/Qt6Core/Qt6CoreMacros.cmake:590:EVAL:1
(qt6_finalize_target)
[   14s]   src/app/CMakeLists.txt:DEFERRED
```

and so on for all missing components.
@intelfx
Copy link

intelfx commented Jul 27, 2024

Note — builds here with just Concurrent WebEngineWidgets Widgets.

src/app/CMakeLists.txt Outdated Show resolved Hide resolved
@trollixx trollixx changed the title build: add missing Qt6 components to find_package. build(app): add missing Qt components to find_package Jul 28, 2024
@trollixx trollixx merged commit c432a0a into zealdocs:main Jul 28, 2024
14 checks passed
@badshah400
Copy link
Contributor Author

Thanks for the quick merge. I can confirm that it builds with the modified patch on openSUSE as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

cmake fails configuring against Qt 6.7.2 because required components are not explicitly listed
3 participants