[cmake] Add the ICU include directories (#6954) Since harfbuzz-icu links the ICU-UC library file instead of the ICU::uc target, it no longer inherits the ICU include directories, so hb-icu.h fails to find unicode/uscript.h when ICU is outside the default include path.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 85ae45c..1c4a684 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -398,6 +398,7 @@ get_target_property(ICU_UC_LIBRARY ICU::uc IMPORTED_LOCATION) list(APPEND THIRD_PARTY_LIBS ${ICU_UC_LIBRARY}) + include_directories(${ICU_INCLUDE_DIRS}) endif () if (APPLE AND HB_HAVE_CORETEXT)