Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cmake_path(APPEND) to determine include directory
The previous code concatenates includedir to _harfbuzz_prefix verbatim, which results in a wrong resulting include path in case includedir is an absolute path. The right behavior would be in this case to drop _harfbuzz_prefix and just use the absolute path which this implements using cmake_path(APPEND). This is an issue in nixpkgs, where includedir is set to the final (absolute) path of the built library in the Nix store, which causes CMake projects depending on harfbuzz to not configure. See NixOS/nixpkgs#180054. NB: cmake_path is a function introduced in CMake 3.20, while harfbuzz's CMakeLists.txt currently specifies 3.12.
- Loading branch information