Skip to content

Commit

Permalink
opentelemetry-cpp: fix CMake target include dirs (#328851)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Sep 4, 2024
2 parents bcda88d + 2b99603 commit 2591b26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/by-name/op/opentelemetry-cpp/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ stdenv.mkDerivation (finalAttrs: {

outputs = [ "out" "dev" ];

postInstall = ''
substituteInPlace $out/lib/cmake/opentelemetry-cpp/opentelemetry-cpp-target.cmake \
--replace-fail "\''${_IMPORT_PREFIX}/include" "$dev/include"
'';

passthru.updateScript = nix-update-script { };

meta = {
Expand Down

0 comments on commit 2591b26

Please sign in to comment.