if(USE_BUNDLED_UTF8PROC)
  message (STATUS "Enabling utf8proc (bundled)")
  add_library (utf8proc_obj OBJECT "${UTF8PROC_SOURCES}")
  set_property (TARGET utf8proc_obj PROPERTY POSITION_INDEPENDENT_CODE TRUE)
  target_compile_definitions (utf8proc_obj PUBLIC UTF8PROC_STATIC)
else ()
  message (STATUS "Searching for utf8proc on system")
  find_package(PkgConfig)
  pkg_check_modules(PC_UTF8PROC REQUIRED libutf8proc IMPORTED_TARGET)
  add_library(utf8proc ALIAS PkgConfig::PC_UTF8PROC)
endif()
