diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c278aa19943..dda3bd00edbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ endif() set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED 17) +set(QT_NO_CREATE_VERSIONLESS_FUNCTIONS ON) include(FeatureSummary) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index f26bfaa8e4fd..f6944f958da5 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -47,7 +47,11 @@ set(client_UI_SRCS wizard/welcomepage.ui ) -qt_add_resources(client_UI_SRCS ../../resources.qrc ${CMAKE_SOURCE_DIR}/theme.qrc) +if(QUICK_COMPILER) + qtquick_compiler_add_resources(client_UI_SRCS ../../resources.qrc ${CMAKE_SOURCE_DIR}/theme.qrc) +else() + qt5_add_resources(client_UI_SRCS ../../resources.qrc ${CMAKE_SOURCE_DIR}/theme.qrc) +endif() set(client_SRCS accountmanager.h