Skip to content

Commit 7afa919

Browse files
authored
Update to newer CMakeFindDependencyMacro macro to fix usage for vcpkg port. (#299)
1 parent 49a42a3 commit 7afa919

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

exporters/fluentd/cmake/opentelemetry-cpp-fluentd-config.cmake.in

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@ foreach(_TEST_TARGET IN LISTS _OPENTELEMETRY_CPP_FLUENTD_LIBRARIES_TEST_TARGETS)
5656
endif()
5757
endforeach()
5858

59-
6059
# handle the QUIETLY and REQUIRED arguments and set opentelemetry-cpp_FOUND to
6160
# TRUE if all variables listed contain valid results, e.g. valid file paths.
62-
include("FindPackageHandleStandardArgs")
63-
find_package_handle_standard_args(
64-
${CMAKE_FIND_PACKAGE_NAME}
65-
FOUND_VAR ${CMAKE_FIND_PACKAGE_NAME}_FOUND
66-
REQUIRED_VARS OPENTELEMETRY_CPP_FLUENTD_INCLUDE_DIRS OPENTELEMETRY_CPP_FLUENTD_LIBRARIES)
61+
include(CMakeFindDependencyMacro)
62+
find_dependency(opentelemetry-cpp CONFIG)
63+
find_dependency(nlohmann_json CONFIG)

0 commit comments

Comments
 (0)