]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/ports/protobuf/vcpkg-cmake-wrapper.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / ports / protobuf / vcpkg-cmake-wrapper.cmake
1 if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.3)
2 cmake_policy(PUSH)
3 cmake_policy(SET CMP0057 NEW)
4 if(NOT "CONFIG" IN_LIST ARGS AND NOT "NO_MODULE" IN_LIST ARGS)
5 if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
6 set(Protobuf_USE_STATIC_LIBS ON)
7 else()
8 set(Protobuf_USE_STATIC_LIBS OFF)
9 endif()
10 endif()
11 cmake_policy(POP)
12 endif()
13
14 find_program(Protobuf_PROTOC_EXECUTABLE NAMES protoc PATHS "${CMAKE_CURRENT_LIST_DIR}/../../../@HOST_TRIPLET@/tools/protobuf" NO_DEFAULT_PATH)
15
16 _find_package(${ARGS})