Skip to content

Fix cmake install missing http_endpoint_calculation_mode.h#341

Open
spottsdd wants to merge 1 commit into
DataDog:mainfrom
spottsdd:fix/install-missing-header
Open

Fix cmake install missing http_endpoint_calculation_mode.h#341
spottsdd wants to merge 1 commit into
DataDog:mainfrom
spottsdd:fix/install-missing-header

Conversation

@spottsdd

@spottsdd spottsdd commented Jul 15, 2026

Copy link
Copy Markdown

Summary

  • tracer_config.h (a public header) includes http_endpoint_calculation_mode.h, but that file is missing from the public_headers FILE_SET list in CMakeLists.txt.
  • As a result, cmake --install never copies http_endpoint_calculation_mode.h to the install prefix's include/datadog/ directory, even though the file exists in the source tree.
  • Anyone building from source and installing per the README's manual build instructions gets a fatal compile error on anything that includes tracer.h/tracer_config.h:
    fatal error: http_endpoint_calculation_mode.h: No such file or directory
    
  • Added the missing entry to the FILE_SET list, alphabetically placed next to the other http_* header.

Test plan

  • Confirmed by diffing the FILES list in CMakeLists.txt against the actual contents of include/datadog/ in the source tree — this was the only header present in the tree but absent from the list.
  • Hit this exact error downstream while building a lab exercise against a manually-built/installed v2.1.1: cmake -B build . && cmake --build build -j && cmake --install build, then compiling a file that includes <datadog/tracer.h> failed with the error above.

tracer_config.h (a public header) includes http_endpoint_calculation_mode.h,
but it was missing from the public_headers FILE_SET in CMakeLists.txt, so
`cmake --install` never copies it. Any consumer building from source and
installing to a prefix (per the README's manual build instructions) gets
a fatal "http_endpoint_calculation_mode.h: No such file or directory"
error compiling anything that includes tracer_config.h/tracer.h.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant