From 1d81f31345368aa20b218a086a8c470b5038ec65 Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 17 Oct 2024 13:02:23 +0200 Subject: [PATCH] added QT_ADD_STATEMACHINE cmake option --- CMakeLists.txt | 1 + buildscripts/cmake/FindQt6.cmake | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14385bfd54630..de13858505e4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,6 +150,7 @@ if (MUE_COMPILE_MACOS_PRECOMPILED_DEPS_PATH) endif() set(QT_MIN_VERSION "6.2.4") +set(QT_ADD_STATEMACHINE ON) if (MUSE_MODULE_NETWORK_WEBSOCKET) set(QT_ADD_WEBSOCKET ON) endif() diff --git a/buildscripts/cmake/FindQt6.cmake b/buildscripts/cmake/FindQt6.cmake index 83e9047d39e7f..ba2b58d2bbb3c 100644 --- a/buildscripts/cmake/FindQt6.cmake +++ b/buildscripts/cmake/FindQt6.cmake @@ -26,10 +26,6 @@ set(_components LinguistTools Core5Compat - - # Note: only used in ExampleView class. - # When that class is removed, don't forget to remove this dependency. - StateMachine ) if (NOT OS_IS_WASM) @@ -46,9 +42,16 @@ if (OS_IS_LIN) ) endif() +if (QT_ADD_STATEMACHINE) + set(_components ${_components} + # Note: only used in ExampleView class. + # When that class is removed, don't forget to remove this dependency. + StateMachine + ) +endif() + if (QT_ADD_WEBSOCKET) - set(_components - ${_components} + set(_components ${_components} WebSockets ) endif()