File: FindUtf8Proc.cmake

package info (click to toggle)
mongo-c-driver 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 47,088 kB
  • sloc: ansic: 193,670; python: 7,780; cpp: 1,493; sh: 659; makefile: 78
file content (11 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
if(USE_BUNDLED_UTF8PROC)
  message (STATUS "Enabling utf8proc (bundled)")
  add_library (utf8proc_obj OBJECT "${mongo-c-driver_SOURCE_DIR}/src/utf8proc-2.8.0/utf8proc.c")
  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()