Qt6: Fix MinGW build

This commit is contained in:
wmayer
2024-07-25 18:57:01 +02:00
committed by wwmayer
parent 8deb2e0f0f
commit 8de6e5e8a8
2 changed files with 9 additions and 7 deletions

View File

@@ -70,13 +70,6 @@ if(MSVC)
${OPENGL_gl_LIBRARY}
)
if(FREECAD_QT_MAJOR_VERSION EQUAL 6)
list(APPEND FreeCADGui_LIBS
Qt6::GuiPrivate
)
endif()
if(FREECAD_USE_3DCONNEXION)
list(APPEND FreeCADGui_LIBS
hid
@@ -93,6 +86,14 @@ else(MSVC)
)
endif(MSVC)
if (WIN32)
if(FREECAD_QT_MAJOR_VERSION EQUAL 6)
list(APPEND FreeCADGui_LIBS
Qt6::GuiPrivate
)
endif()
endif()
include_directories(
${QtCore_INCLUDE_DIRS}
${QtWidgets_INCLUDE_DIRS}

View File

@@ -52,6 +52,7 @@
# include <QToolBar>
# include <QUrlQuery>
# include <QWhatsThis>
# include <QWindow>
# include <QPushButton>
#endif