Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake find_package failed to import opentelemetry-cpp #513

Closed
ThomsonTan opened this issue Jan 13, 2021 · 1 comment · Fixed by #514
Closed

CMake find_package failed to import opentelemetry-cpp #513

ThomsonTan opened this issue Jan 13, 2021 · 1 comment · Fixed by #514
Assignees
Labels
bug Something isn't working

Comments

@ThomsonTan
Copy link
Contributor

We added packaged installation in PR #432, which could install opentelemetry-cpp correctly to the designated target. But I got below message while import the installed package from a standalone project.

Seems we missed to pass include dir as PATH_VAR for configure_package_config_file.

lib/cmake/opentelemetry-cpp-config.cmake:64 (message):
File or directory referenced by variable OPENTELEMETRY_CPP_INCLUDE_DIRS
does not exist !

@andriy-fd
Copy link
Contributor

andriy-fd commented Apr 12, 2024

Is there any chance that this happened again?
We see the same error on gihub after recent changes for runners: actions/runner-images@a0af039

error:

Make Error at build/vcpkg_installed/x64-windows-static-md/share/opentelemetry-cpp/opentelemetry-cpp-config.cmake:75 (message):
  File or directory
  C:/a/endpoint-otel/endpoint-otel/build/vcpkg_installed/include
  referenced by variable OPENTELEMETRY_CPP_INCLUDE_DIRS does not exist !
Call Stack (most recent call first):
  build/vcpkg_installed/x64-windows-static-md/share/opentelemetry-cpp/opentelemetry-cpp-config.cmake:85 (set_and_check)
  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
  src/telemetry/tracing/base/CMakeLists.txt:5 (find_package) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants