• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if (NOT TARGET utf8_range)
2  set(utf8_range_ENABLE_TESTS OFF CACHE BOOL "Disable utf8_range tests")
3
4  if (NOT EXISTS "${protobuf_SOURCE_DIR}/third_party/utf8_range/CMakeLists.txt")
5    message(FATAL_ERROR
6            "Cannot find third_party/utf8_range directory that's needed for "
7            "the protobuf runtime.\n")
8  endif()
9
10  set(utf8_range_ENABLE_INSTALL ${protobuf_INSTALL} CACHE BOOL "Set install")
11  add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third_party/utf8_range third_party/utf8_range)
12  include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/utf8_range)
13endif ()
14
15set(_protobuf_FIND_UTF8_RANGE "if(NOT TARGET utf8_range)\n  find_package(utf8_range CONFIG)\nendif()")
16