Skip to content

Commit 991b69c

Browse files
FelixBerfb
andauthored
fix compile with Qt 6.9.0 - qplatformnativeinterface.h missing (#736)
Co-authored-by: fb <[email protected]>
1 parent df1fa27 commit 991b69c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ add_library(ads::${library_name} ALIAS ${library_name})
8585
target_link_libraries(${library_name} PUBLIC Qt${QT_VERSION_MAJOR}::Core
8686
Qt${QT_VERSION_MAJOR}::Gui
8787
Qt${QT_VERSION_MAJOR}::Widgets)
88+
89+
if(QT_VERSION_MAJOR STREQUAL "6")
90+
target_link_libraries(${library_name} PRIVATE Qt6::GuiPrivate) #needed for <qpa/qplatformnativeinterface.h>
91+
endif()
92+
8893
if (UNIX AND NOT APPLE)
8994
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
9095
find_package(X11 REQUIRED)

0 commit comments

Comments
 (0)