diff --git a/shells/desktop/shell/CMakeLists.txt b/shells/desktop/shell/CMakeLists.txt index 2ad0cc4..db3cee6 100644 --- a/shells/desktop/shell/CMakeLists.txt +++ b/shells/desktop/shell/CMakeLists.txt @@ -9,8 +9,6 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux") "and LayerShellQt is not stubbed with other platform APIs.") endif() - - set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) @@ -91,8 +89,12 @@ set_target_properties(nebula-shell PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" ) -if(COMMAND qt_import_qml_plugins) - +# Shared Qt discovers QML plugins at runtime. Skip qmlimportscanner / static +# plugin importing so Qt 6.8+ does not warn about missing Qt6::*plugin targets. +if(QT6_IS_SHARED_LIBS_BUILD) + set_target_properties(nebula-shell PROPERTIES + QT_QML_MODULE_NO_IMPORT_SCAN TRUE + ) endif() if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")