add harfbuzz minimum version and HarfBuzz::ICU target. probably fixes osx

This commit is contained in:
Mathis Logemann 2021-07-06 22:19:28 +02:00
parent c5f0565654
commit cdb598e67b

View file

@ -120,7 +120,7 @@ endif()
mapnik_find_package(Freetype REQUIRED)
# we use our "own" FindHarfBuzz. See https://github.com/mapnik/mapnik/pull/4191#issuecomment-874728157 for more details
mapnik_find_package(HarfBuzz REQUIRED)
mapnik_find_package(HarfBuzz 0.9.34 REQUIRED COMPONENTS ICU)
if(USE_EXTERNAL_MAPBOX_GEOMETRY)
# this is used to provide a way to specify include dirs with CACHE VARIABLES
@ -279,6 +279,7 @@ target_link_libraries(core INTERFACE
Boost::filesystem
Freetype::Freetype
HarfBuzz::HarfBuzz
HarfBuzz::ICU
${MAPNIK_OPTIONAL_LIBS}
)
target_compile_definitions(core INTERFACE ${MAPNIK_COMPILE_DEFS})