Skip to content

Commit

Permalink
Atempt to fix designerr CMake build (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed Apr 26, 2024
1 parent ca738bb commit 8919e5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/plugins/qmldesigner/CMakeLists.txt
Expand Up @@ -51,6 +51,11 @@ extend_qtc_library(QmlDesignerUtils
PROPERTIES COMPILE_WARNING_AS_ERROR ON
)

# remove interface compile definition (add_qtc_library seems wrong)
get_target_property(defs QmlDesignerUtils INTERFACE_COMPILE_DEFINITIONS)
list(FILTER defs EXCLUDE REGEX [[^QMLDESIGNERUTILS_LIBRARY$]])
set_property(TARGET QmlDesignerUtils PROPERTY INTERFACE_COMPILE_DEFINITIONS ${defs})

add_qtc_library(QmlDesignerCore STATIC
CONDITION TARGET QmlDesignerBase AND TARGET Qt6::QmlPrivate AND TARGET Qt6::QmlDomPrivate AND TARGET Qt6::QmlCompilerPrivate
EXCLUDE_FROM_INSTALL
Expand Down
1 change: 0 additions & 1 deletion src/plugins/qmldesigner/qmldesignerplugin.qbs
Expand Up @@ -42,7 +42,6 @@ QtcPlugin {
"QMLDESIGNERUTILS_LIBRARY",
"QMLDESIGNER_LIBRARY",
"QMLDESIGNERCORE_LIBRARY",
"QMLDESIGNERUTILS_LIBRARY",
"QMLDESIGNERCOMPONENTS_LIBRARY",
])
cpp.enableExceptions: true
Expand Down

0 comments on commit 8919e5e

Please sign in to comment.