Skip to content

fix issue with building with both examples and playground disabled - #412

Open
ovenpasta wants to merge 1 commit into
uwerat:masterfrom
ovenpasta:master
Open

fix issue with building with both examples and playground disabled#412
ovenpasta wants to merge 1 commit into
uwerat:masterfrom
ovenpasta:master

Conversation

@ovenpasta

Copy link
Copy Markdown
Contributor

When building qskinny with both -DBUILD_EXAMPLES=OFF and -DBUILD_PLAYGROUND=OFF, cmake cannot find the QtQuick library. Probably it gets pulled as part of QuickWidgets and WebEngine

Comment thread cmake/QskFindMacros.cmake
message(FATAL_ERROR "Couldn't find any Qt package !")
endif()

find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Quick)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a find_package( ... Quick) at the beginning of qsk_setup_Qt.
Could you please find out why it is not working in your case ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is strange, and the patch effectively fixes the issue in my case. I can reproduce both on windows / vcpkg / qt 6 and with Arch Linux / Qt 6.7.1.

I've found this:
https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html#supporting-older-qt-5-versions

They suggest that for older qt 5 versions should call find_package twice, one with the QT + NAMES and the second with the effective version. In my case it is needed even with Qt6

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