mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
CMake: fail if Qt5::GuiPrivate is not found
`nextcloud` and `nextcloudCore` depend on three Qt5 components which aren't mentioned in `find_library`: `Xml`, `Network`, and `GuiPrivate`. The first two are omitted by mistake, apparently, so this commit just adds them. `GuiPrivate` is a special case: it doesn't have its own CMake config, so adding it to "required components" in `find_package` will always fail the build. Thus, we implement our own check instead. Signed-off-by: Alexander Batischev <eual.jp@gmail.com>
This commit is contained in:
parent
0e5f1d9a30
commit
d8560dcb19
@ -1,5 +1,8 @@
|
||||
project(gui)
|
||||
find_package(Qt5 REQUIRED COMPONENTS Widgets Svg Qml Quick QuickControls2)
|
||||
find_package(Qt5 REQUIRED COMPONENTS Widgets Svg Qml Quick QuickControls2 Xml Network)
|
||||
if (NOT TARGET Qt5::GuiPrivate)
|
||||
message(FATAL_ERROR "Could not find GuiPrivate component of Qt5. It might be shipped as a separate package, please check that.")
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
add_definitions(-DQT_QML_DEBUG)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user