Update CMakeLists.txt
This commit is contained in:
@@ -9,8 +9,6 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|||||||
"and LayerShellQt is not stubbed with other platform APIs.")
|
"and LayerShellQt is not stubbed with other platform APIs.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
@@ -91,8 +89,12 @@ set_target_properties(nebula-shell PROPERTIES
|
|||||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
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()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||||
|
|||||||
Reference in New Issue
Block a user