cmake: [skip ci] build with Qt6 requires the module QtSvgWidgets

This commit is contained in:
wmayer
2022-11-02 14:40:40 +01:00
parent 8365f90c09
commit a334bc4f0a
2 changed files with 4 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ endif()
if(BUILD_GUI)
if (FREECAD_QT_MAJOR_VERSION EQUAL 6)
list (APPEND FREECAD_QT_COMPONENTS GuiTools)
list (APPEND FREECAD_QT_COMPONENTS SvgWidgets)
endif()
list (APPEND FREECAD_QT_COMPONENTS OpenGL PrintSupport Svg UiTools Widgets)
if (BUILD_WEB)
@@ -52,4 +53,4 @@ if (Qt${FREECAD_QT_MAJOR_VERSION}Core_VERSION VERSION_LESS 5.15.0)
qt5_wrap_cpp("${outfiles}" ${ARGN})
set("${outfiles}" "${${outfiles}}" PARENT_SCOPE)
endfunction()
endif()
endif()