Fix Qt 6.7.1 cmake configure error

Qt 6.7.1 Web Assembly does not have support for designer package
So we disable building the designer plugin when building for Web Assembly
This commit is contained in:
2024-05-30 18:00:20 +02:00
parent 3fc4239a37
commit 4093216db1

View File

@@ -1,3 +1,6 @@
if(EMSCRIPTEN)
# WebAssembly specific code
else()
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core Widgets UiPlugin Gui Designer)
find_package(Qt6 REQUIRED COMPONENTS Core Widgets UiPlugin Gui Designer)
@@ -34,3 +37,5 @@ target_link_libraries(qwt_designer
Qt6::Designer
qwt
)
endif()