Skip to content

Commit 2b43999

Browse files
anoymouservermike-malburg
authored andcommitted
Remove GuiPrivate dependency for Windows builds (githubuser0xFFFF#777)
1 parent 02aa4f3 commit 2b43999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ target_link_libraries(${library_name} PUBLIC Qt${QT_VERSION_MAJOR}::Core
9292
Qt${QT_VERSION_MAJOR}::Gui
9393
Qt${QT_VERSION_MAJOR}::Widgets)
9494

95-
if(QT_VERSION_MAJOR STREQUAL "6")
95+
if(UNIX AND NOT APPLE AND QT_VERSION_MAJOR STREQUAL "6")
9696
target_link_libraries(${library_name} PRIVATE Qt6::GuiPrivate) #needed for <qpa/qplatformnativeinterface.h>
9797
endif()
9898

0 commit comments

Comments
 (0)