Package: libharfbuzz-dev
Version: 12.1.0-1
I'm getting the following:
CMake Error at /lib/x86_64-linux-gnu/cmake/harfbuzz/harfbuzz-config.cmake:7
(message):
File or directory //include/harfbuzz referenced by variable
HARFBUZZ_INCLUDE_DIR does not exist !
Call Stack (most recent call first):
/lib/x86_64-linux-gnu/cmake/harfbuzz/harfbuzz-config.cmake:22 (set_and_check)
cmake/scripts/common/ModuleHelpers.cmake:701 (find_package)
cmake/modules/FindHarfBuzz.cmake:21 (SEARCH_EXISTING_PACKAGES)
cmake/scripts/common/Macros.cmake:378 (find_package)
cmake/scripts/common/Macros.cmake:390 (find_package_with_ver)
CMakeLists.txt:289 (core_require_dep)
I think this is caused by Debian relatively symlinking /lib to
usr/lib. Looking at other cmake config's, they seem to deal with it by
including (for example, from zstd/zstdConfig.cmake):
# Use original install prefix when loaded through a "/usr move"
# cross-prefix symbolic link such as /lib -> /usr/lib.
get_filename_component(_realCurr "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
get_filename_component(_realOrig
"/usr/lib/x86_64-linux-gnu/cmake/zstd" REALPATH)
if(_realCurr STREQUAL _realOrig)
set(PACKAGE_PREFIX_DIR "/usr")
endif()
unset(_realOrig)
unset(_realCurr)