Skip to content

Commit

Permalink
Qt6: Fix MinGW build
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 25, 2024
1 parent 8deb2e0 commit 8de6e5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/Gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand Down
1 change: 1 addition & 0 deletions src/Gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
# include <QToolBar>
# include <QUrlQuery>
# include <QWhatsThis>
# include <QWindow>
# include <QPushButton>
#endif

Expand Down

0 comments on commit 8de6e5e

Please sign in to comment.