open-telemetry / opentelemetry-cpp-contrib

https://opentelemetry.io/
Apache License 2.0
121 stars 130 forks source link

Update to newer CMakeFindDependencyMacro macro to fix usage for vcpkg port. #299

Closed niande-xbox closed 12 months ago

niande-xbox commented 12 months ago

Thanks to @LilyWangLL's expertise by correcting this CMAKE such that the CONFIG file's usage is correct.

I tested via running:

niande@NIANDE-DESKTOP:/mnt/x/opentelemetry-cpp-contrib/exporters/fluentd$ cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake
niande@NIANDE-DESKTOP:/mnt/x/opentelemetry-cpp-contrib/exporters/fluentd$ make

This is what the CMAKE experts in vcpkg have recommended.