diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 15ac4a9..db372d0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -65,7 +65,10 @@ target_compile_definitions(ibus-setup-chewing PRIVATE LOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}" ) target_include_directories(ibus-setup-chewing PRIVATE setup) -target_link_libraries(ibus-setup-chewing PkgConfig::LIBADWAITA) +target_link_libraries(ibus-setup-chewing + PkgConfig::LIBADWAITA + PkgConfig::CHEWING +) add_executable(ibus-engine-chewing ibus-chewing-engine.c diff --git a/src/setup/ibus-setup-chewing-about.c b/src/setup/ibus-setup-chewing-about.c index e4d2917..5cd8e77 100644 --- a/src/setup/ibus-setup-chewing-about.c +++ b/src/setup/ibus-setup-chewing-about.c @@ -20,6 +20,7 @@ #include "ibus-setup-chewing-about.h" +#include #include #include @@ -36,7 +37,7 @@ static char *generate_debug_info(void) { QUOTE_ME(CHEWING_VERSION)); g_string_append(string, "\nRunning against:\n"); - g_string_append_printf(string, "- libchewing: n/a\n"); + g_string_append_printf(string, "- libchewing: %s\n", chewing_version()); g_string_append(string, "\n"); {