Skip to content

Commit

Permalink
[BUILD] Add OPENTELEMETRY_CPP_FOUND into cmake CONFIG file. (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
owent authored Jul 5, 2023
1 parent ebbcd48 commit 31f218c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake/opentelemetry-cpp-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,12 @@ find_package_handle_standard_args(
${CMAKE_FIND_PACKAGE_NAME}
FOUND_VAR ${CMAKE_FIND_PACKAGE_NAME}_FOUND
REQUIRED_VARS OPENTELEMETRY_CPP_INCLUDE_DIRS OPENTELEMETRY_CPP_LIBRARIES)

if(${CMAKE_FIND_PACKAGE_NAME}_FOUND)
set(OPENTELEMETRY_CPP_FOUND
${${CMAKE_FIND_PACKAGE_NAME}_FOUND}
CACHE BOOL "whether opentelemetry-cpp is found" FORCE)
else()
unset(OPENTELEMETRY_CPP_FOUND)
unset(OPENTELEMETRY_CPP_FOUND CACHE)
endif()

0 comments on commit 31f218c

Please sign in to comment.