diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index 4fee49d61ead8f16c29b867e507cf32f06e062b7..4c5665c0cdaf573262fada673ee7bf434a90e5ed 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -152,7 +152,12 @@ if(WITH_JEMALLOC) endif() endif() -pkg_search_module(ICU_UC REQUIRED icu-uc) +if (APPLE) + # macOS comes with icu-uc library preinstalled; use it as a fall-back + pkg_search_module(ICU_UC icu-uc) +else() + pkg_search_module(ICU_UC REQUIRED icu-uc) +endif() list(APPEND INKSCAPE_INCS_SYS ${ICU_UC_INCLUDE_DIRS}) list(APPEND INKSCAPE_LIBS ${ICU_UC_LIBRARIES}) link_directories(${ICU_UC_LIBRARY_DIRS})