Skip to content

Commit

Permalink
QmlDesigner: Fix condition for adding QMLDESIGNER_STATIC_LIBRARY define
Browse files Browse the repository at this point in the history
"$<BOOL:" interprets the following string, and does not expand variables
itself.

Amends 78cf505

Change-Id: I50e09e699764a00091167e8c72045a0f9055160e
Reviewed-by: Tim Jenssen <[email protected]>
  • Loading branch information
e4z9 authored and tjenssen committed Nov 16, 2022
1 parent 0d2cb70 commit 478ce3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/qmldesigner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ add_qtc_library(QmlDesignerUtils STATIC
DEPENDS
Qt5::Gui
DEFINES QMLDESIGNERUTILS_LIBRARY
PUBLIC_DEFINES $<$<BOOL:QTC_STATIC_BUILD>:QMLDESIGNER_STATIC_LIBRARY>
PUBLIC_DEFINES $<$<BOOL:${QTC_STATIC_BUILD}>:QMLDESIGNER_STATIC_LIBRARY>
PUBLIC_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/utils
SOURCES_PREFIX ${CMAKE_CURRENT_LIST_DIR}/utils
SOURCES
Expand Down

0 comments on commit 478ce3f

Please sign in to comment.