Link against the qtforkawesomeiconengine plugin when it is a static library

This should fix the AppImage build where my own libraries (including
plugins) are built as static libraries but static linkage is not generally
enabled.
This commit is contained in:
Martchus 2021-10-06 17:19:15 +02:00
parent 4801afebf5
commit cf99b656f0
1 changed files with 4 additions and 4 deletions

View File

@ -111,11 +111,11 @@ use_syncthingmodel()
find_package(syncthingwidgets ${META_APP_VERSION} REQUIRED)
use_syncthingwidgets()
# link against the qtforkawesomeiconengine plugin when static linkage is enabled
# link against the qtforkawesomeiconengine plugin when it is a static library
include(3rdParty)
if (STATIC_LINKAGE)
find_package(${PACKAGE_NAMESPACE_PREFIX}qtforkawesomeiconengine${CONFIGURATION_PACKAGE_SUFFIX_QTFORKAWESOME} 0.0.1
REQUIRED)
find_package(${PACKAGE_NAMESPACE_PREFIX}qtforkawesomeiconengine${CONFIGURATION_PACKAGE_SUFFIX_QTFORKAWESOME} 0.0.1
REQUIRED)
if (NOT QT_FORK_AWESOME_ICON_ENGINE_LIB_IS_SHARED)
use_qt_fork_awesome_icon_engine()
endif ()