diff --git a/CMakeLists.txt b/CMakeLists.txt index 07ffb92af..34480d3db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,7 +188,7 @@ endif() # directory needed by bsd if(NOT CMAKE_INSTALL_LIBDATADIR) - set(CMAKE_INSTALL_LIBDATADIR "${CMAKE_INSTALL_LIBDIR}" CACHE PATH "libdata root (LIBDIR)") + set(CMAKE_INSTALL_LIBDATADIR "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE PATH "libdata root (LIBDIR)") endif() GNUInstallDirs_get_absolute_install_dir(CMAKE_INSTALL_FULL_LIBDATADIR CMAKE_INSTALL_LIBDATADIR LIBDATADIR) diff --git a/src/lib/fcitx-config/CMakeLists.txt b/src/lib/fcitx-config/CMakeLists.txt index 60bfa14ac..fcbe47fb4 100644 --- a/src/lib/fcitx-config/CMakeLists.txt +++ b/src/lib/fcitx-config/CMakeLists.txt @@ -42,7 +42,7 @@ set_target_properties(Fcitx5Config target_include_directories(Fcitx5Config PUBLIC $ $ - $) + $) target_link_libraries(Fcitx5Config PUBLIC Fcitx5::Utils) configure_file(Fcitx5Config.pc.in ${CMAKE_CURRENT_BINARY_DIR}/Fcitx5Config.pc @ONLY) diff --git a/src/lib/fcitx-utils/CMakeLists.txt b/src/lib/fcitx-utils/CMakeLists.txt index fe71b8f88..150d5115f 100644 --- a/src/lib/fcitx-utils/CMakeLists.txt +++ b/src/lib/fcitx-utils/CMakeLists.txt @@ -149,7 +149,7 @@ set_target_properties(Fcitx5Utils target_include_directories(Fcitx5Utils PUBLIC $ $ - $) + $) target_link_libraries(Fcitx5Utils PRIVATE DL::DL LibIntl::LibIntl Pthread::Pthread) if(LIBKVM_FOUND) target_link_libraries(Fcitx5Utils PRIVATE LibKVM::LibKVM) diff --git a/src/lib/fcitx/CMakeLists.txt b/src/lib/fcitx/CMakeLists.txt index 0cf004fec..2c5fe41be 100644 --- a/src/lib/fcitx/CMakeLists.txt +++ b/src/lib/fcitx/CMakeLists.txt @@ -79,7 +79,7 @@ endif() target_include_directories(Fcitx5Core PUBLIC $ $ - $) + $) target_link_libraries(Fcitx5Core PUBLIC Fcitx5::Config Fcitx5::Utils PRIVATE LibIntl::LibIntl) if (ENABLE_KEYBOARD) target_link_libraries(Fcitx5Core PRIVATE XKBCommon::XKBCommon)