Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
14 lines
692 B
14 lines
692 B
set(utf8_range_ENABLE_TESTS OFF CACHE BOOL "Disable utf8_range tests") |
|
|
|
if (NOT EXISTS "${protobuf_SOURCE_DIR}/third_party/utf8_range/CMakeLists.txt") |
|
message(FATAL_ERROR |
|
"Cannot find third_party/utf8_range directory that's needed to " |
|
"build conformance tests. If you use git, make sure you have cloned " |
|
"submodules:\n" |
|
" git submodule update --init --recursive\n") |
|
endif() |
|
|
|
set(utf8_range_ENABLE_INSTALL ${protobuf_INSTALL} CACHE BOOL "Set install") |
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third_party/utf8_range third_party/utf8_range) |
|
|
|
set(_protobuf_FIND_UTF8_RANGE "if(NOT TARGET utf8_range)\n find_package(utf8_range CONFIG)\nendif()")
|
|
|