Skip to content

Commit

Permalink
uharfbuzz/CMakeLists.txt: link module with ApplicationServices framew…
Browse files Browse the repository at this point in the history
…ork on macOS

Fixes #6
  • Loading branch information
anthrotype committed Jul 26, 2018
1 parent 76f925a commit 3d2009d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/uharfbuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}

add_cython_target(_harfbuzz)
add_library(_harfbuzz MODULE ${_harfbuzz})

if (APPLE)
find_library(APPLICATION_SERVICES_FRAMEWORK ApplicationServices)
if (NOT APPLICATION_SERVICES_FRAMEWORK)
message(FATAL_ERROR "HB_HAVE_CORETEXT was set, but we failed to find ApplicationServices, which is required")
else ()
target_link_libraries(_harfbuzz ${APPLICATION_SERVICES_FRAMEWORK})
endif ()
endif ()

target_link_libraries(_harfbuzz ${HARFBUZZ_LIBRARY})
python_extension_module(_harfbuzz)

Expand Down

0 comments on commit 3d2009d

Please sign in to comment.