Skip to content

Make how Qt packages are found more convinient#162

Merged
danvratil merged 1 commit intoqcoro:mainfrom
ptsouchlos:feature/qt-find
Apr 7, 2023
Merged

Make how Qt packages are found more convinient#162
danvratil merged 1 commit intoqcoro:mainfrom
ptsouchlos:feature/qt-find

Conversation

@ptsouchlos
Copy link
Contributor

This change allows users to specify Qt5_DIR or Qt6_DIR and then the rest of the components are automatically found. Prior to this, since find_package() was called for each component of Qt, CMake configuring would fail with each component not found. So you would have to specify all the paths at once.

I'm not sure if find_package(Qt${ARGS_QT_VERSION}${base_component} REQUIRED COMPONENTS Private) is needed, but if so I can add it back in. From my testing, things worked as expected.

This change allows users to specify `Qt5_DIR` or `Qt6_DIR` and then the rest of the components are automatically found. Prior to this, since `find_package()` was called for each component of Qt, CMake configuring would fail with each component not found. So you would have to specify all the paths at once.
@danvratil
Copy link
Collaborator

Thanks, Paul!

@danvratil danvratil merged commit f2a68bf into qcoro:main Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants