We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ea986 commit ac57c9eCopy full SHA for ac57c9e
install/test/cmake/component_tests/shims_opentracing/CMakeLists.txt
@@ -6,8 +6,12 @@ project(opentelemetry-cpp-shims_opentracing-install-test LANGUAGES CXX)
6
7
find_package(opentelemetry-cpp REQUIRED COMPONENTS shims_opentracing)
8
9
-if(NOT TARGET OpenTracing::opentracing)
10
- message(FATAL_ERROR "OpenTracing::opentracing target not found")
+if(NOT TARGET OpenTracing::opentracing AND NOT TARGET
+ OpenTracing::opentracing-static)
11
+ message(
12
+ FATAL_ERROR
13
+ "A required OpenTracing target (OpenTracing::opentracing or OpenTracing::opentracing-static) was not imported"
14
+ )
15
endif()
16
17
find_package(GTest CONFIG REQUIRED)
0 commit comments