--- libs/vtextedit/libs/sonnet/src/plugins/hunspell/CMakeLists.txt.orig 2024-04-30 07:11:17 UTC +++ libs/vtextedit/libs/sonnet/src/plugins/hunspell/CMakeLists.txt @@ -5,6 +5,8 @@ find_package(Qt${QT_DEFAULT_MAJOR_VERSION} REQUIRED CO set(QT_DEFAULT_MAJOR_VERSION 6 CACHE STRING "Qt version to use (5 or 6), defaults to 6") find_package(Qt${QT_DEFAULT_MAJOR_VERSION} REQUIRED COMPONENTS Core) +find_package(PkgConfig REQUIRED) +pkg_check_modules(Hunspell REQUIRED IMPORTED_TARGET hunspell) if ((QT_DEFAULT_MAJOR_VERSION GREATER 5)) qt_standard_project_setup() @@ -31,5 +33,5 @@ target_link_libraries(sonnet-hunspell PUBLIC target_link_libraries(sonnet-hunspell PUBLIC Qt::Core sonnet-core - Hunspell + PkgConfig::Hunspell )