File: patch-imported-config.cmake

package info (click to toggle)
opentelemetry-cpp 1.23.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,372 kB
  • sloc: cpp: 96,239; sh: 1,766; makefile: 36; python: 31
file content (144 lines) | stat: -rw-r--r-- 3,742 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

# Some prebuilt or installed targets may have different CONFIG settings than
# what we use to configure otel-cpp. This file applies patches to the imported
# targets in order to use compatible CONFIG settings for fallback.

# Common dependencies
project_build_tools_patch_default_imported_config(ZLIB::ZLIB)

# protobuf targets
if(Protobuf_FOUND)
  project_build_tools_patch_default_imported_config(
    utf8_range::utf8_range utf8_range::utf8_validity protobuf::libprotobuf-lite
    protobuf::libprotobuf protobuf::libprotoc)
endif()

# cares targets
if(TARGET c-ares::cares)
  project_build_tools_patch_default_imported_config(c-ares::cares)
endif()

# curl targets
if(TARGET CURL::libcurl
   OR TARGET CURL::libcurl_static
   OR TARGET CURL::libcurl_shared)
  project_build_tools_patch_default_imported_config(
    CURL::libcurl CURL::libcurl_static CURL::libcurl_shared)
endif()

# abseil targets
if(TARGET absl::bad_variant_access)
  project_build_tools_patch_default_imported_config(
    absl::bad_variant_access
    absl::raw_logging_internal
    absl::log_severity
    absl::log_internal_check_op
    absl::log_internal_nullguard
    absl::strings
    absl::strings_internal
    absl::base
    absl::spinlock_wait
    absl::int128
    absl::throw_delegate
    absl::log_internal_message
    absl::examine_stack
    absl::stacktrace
    absl::debugging_internal
    absl::symbolize
    absl::demangle_internal
    absl::malloc_internal
    absl::log_internal_format
    absl::log_internal_globals
    absl::time
    absl::civil_time
    absl::time_zone
    absl::str_format_internal
    absl::log_internal_proto
    absl::log_internal_log_sink_set
    absl::log_globals
    absl::hash
    absl::city
    absl::bad_optional_access
    absl::low_level_hash
    absl::log_entry
    absl::log_sink
    absl::synchronization
    absl::graphcycles_internal
    absl::strerror
    absl::log_internal_conditions
    absl::cord
    absl::cord_internal
    absl::crc_cord_state
    absl::crc32c
    absl::crc_cpu_detect
    absl::crc_internal
    absl::cordz_functions
    absl::exponential_biased
    absl::cordz_info
    absl::cordz_handle
    absl::leak_check
    absl::die_if_null
    absl::flags
    absl::flags_commandlineflag
    absl::flags_commandlineflag_internal
    absl::flags_config
    absl::flags_program_name
    absl::flags_internal
    absl::flags_marshalling
    absl::flags_reflection
    absl::flags_private_handle_accessor
    absl::raw_hash_set
    absl::hashtablez_sampler
    absl::log_initialize
    absl::status
    absl::statusor)
endif()

# gRPC targets
if(TARGET gRPC::grpc++)
  project_build_tools_patch_default_imported_config(
    gRPC::cares
    gRPC::re2
    gRPC::ssl
    gRPC::crypto
    gRPC::zlibstatic
    gRPC::address_sorting
    gRPC::gpr
    gRPC::grpc
    gRPC::grpc_unsecure
    gRPC::grpc++
    gRPC::grpc++_alts
    gRPC::grpc++_error_details
    gRPC::grpc++_reflection
    gRPC::grpc++_unsecure
    gRPC::grpc_authorization_provider
    gRPC::grpc_plugin_support
    gRPC::grpcpp_channelz
    gRPC::upb)
endif()

# prometheus targets
if(TARGET prometheus-cpp::core)
  project_build_tools_patch_default_imported_config(
    prometheus-cpp::core prometheus-cpp::pull prometheus-cpp::push)
endif()

# civetweb targets
if(TARGET civetweb::civetweb)
  project_build_tools_patch_default_imported_config(
    civetweb::civetweb civetweb::server civetweb::civetweb-cpp)
endif()

if(BUILD_TESTING)
  project_build_tools_patch_default_imported_config(
    GTest::gtest
    GTest::gtest_main
    GTest::gmock
    GTest::gmock_main
    GTest::GTest
    GTest::Main
    benchmark::benchmark
    benchmark::benchmark_main)
endif()