Skip to content

Use standard install destinations instead of ddprof/ prefix#511

Closed
xroche wants to merge 1 commit intoDataDog:mainfrom
algolia:fix/standard-install-destinations
Closed

Use standard install destinations instead of ddprof/ prefix#511
xroche wants to merge 1 commit intoDataDog:mainfrom
algolia:fix/standard-install-destinations

Conversation

@xroche
Copy link
Contributor

@xroche xroche commented Mar 19, 2026

Summary

Install rules used a ddprof/ prefix on all destinations, producing paths like <prefix>/ddprof/bin/ddprof instead of the standard <prefix>/bin/ddprof. This breaks cmake --install, find_package(), and Conan's cmake.install() without manual file relocation.

The GNUInstallDirs convention expects CMAKE_INSTALL_PREFIX to control the top-level directory, with bin/, lib/, include/ directly underneath.

How

Remove the ddprof/ prefix from install destinations and let CMAKE_INSTALL_PREFIX control the layout. Update setup_env.sh to append /ddprof to the install prefix so the release tarball keeps the same ddprof/bin/ddprof structure.

License files move from the install root to a licenses/ subdirectory. The tarball layout changes from ddprof/LICENSE to ddprof/licenses/LICENSE.

🤖 Generated with Claude Code

Install rules used a `ddprof/` prefix on all destinations (bin, lib,
include), producing non-standard paths like `<prefix>/ddprof/bin/ddprof`.
This forced every consumer (Conan, cmake --install) to relocate files
manually.

Remove the prefix and let `CMAKE_INSTALL_PREFIX` control the layout.
Update `setup_env.sh` to set the prefix to `../deliverables/ddprof` so
the release tarball structure stays the same.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@xroche xroche force-pushed the fix/standard-install-destinations branch from 2e5dcc8 to a1fcc0f Compare March 19, 2026 09:16
@xroche xroche marked this pull request as ready for review March 19, 2026 12:49
@r1viollet
Copy link
Collaborator

Copying the PR here to follow up on downstream build adjustments.

@r1viollet r1viollet closed this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants