Skip to content

Commit 834f432

Browse files
ZamundaaaWaqar144
authored andcommitted
cmake: fix build with Qt dev
We need to explicitly search for Qt::WidgetsPrivate now, see https://bugreports.qt.io/browse/QTBUG-87776
1 parent da3b1ac commit 834f432

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,9 @@ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
518518
# prevent 'file too big' and 'too many sections' errors with Qt6
519519
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj")
520520
endif()
521+
if (Qt6Gui_VERSION VERSION_GREATER_EQUAL "6.10.0")
522+
find_package(Qt6WidgetsPrivate ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE)
523+
endif()
521524
endif()
522525

523526
# these need to included after the last Qt-related find_package() call

0 commit comments

Comments
 (0)