mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
18 lines
594 B
Diff
18 lines
594 B
Diff
diff --git a/cmake/opentracing-cpp.cmake b/cmake/opentracing-cpp.cmake
|
|
index f014ecd..fd8898a 100644
|
|
--- a/cmake/opentracing-cpp.cmake
|
|
+++ b/cmake/opentracing-cpp.cmake
|
|
@@ -1,7 +1,11 @@
|
|
# Copyright The OpenTelemetry Authors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
-find_package(OpenTracing CONFIG QUIET)
|
|
+find_package(OpenTracing CONFIG REQUIRED)
|
|
+if(NOT TARGET OpenTracing::opentracing AND TARGET OpenTracing::opentracing-static)
|
|
+ add_library(OpenTracing::opentracing ALIAS OpenTracing::opentracing-static)
|
|
+endif()
|
|
+
|
|
set(OpenTracing_PROVIDER "find_package")
|
|
|
|
if(NOT OpenTracing_FOUND)
|