Skip to content

Fix installation of TOPPBase public headers - #9774

Merged
timosachsenberg merged 2 commits into
OpenMS:developfrom
timosachsenberg:agent/install-topp-headers
Jul 21, 2026
Merged

timosachsenberg merged 2 commits into
OpenMS:developfrom
timosachsenberg:agent/install-topp-headers

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • register TOPPBase_defs.h as an OpenMS public header
  • register TOPPExternalToolBase.h as an OpenMS public header
  • include both files in the OpenMS_headers install component

Root cause

The TOPPBase refactor added these public headers but did not add them to src/openms/include/OpenMS/APPLICATIONS/sources.cmake. TOPPBase.h is installed and includes TOPPBase_defs.h, so consumers of an installed OpenMS package fail to compile with a missing-header error.

Impact

Standalone consumers can build against a normal cmake --install OpenMS prefix again. This was found while building the extracted OpenMS Legacy GUI against a core-only OpenMS installation.

Validation

  • configured current develop from an isolated worktree
  • verified generated install rules place both headers in include/OpenMS/APPLICATIONS
  • ran cmake --install --component OpenMS_headers successfully
  • compared both installed headers byte-for-byte with their source files

Summary by CodeRabbit

  • Build and Packaging
    • Added missing application headers to the build’s header list so they’re included in generated project files and source groupings.
  • Documentation
    • Updated contributor guidance to ensure that changes to public headers under src/openms/include/OpenMS/ are mirrored in the CMake header list used for installation, preventing downstream breakage.

@timosachsenberg
timosachsenberg marked this pull request as ready for review July 21, 2026 08:24
@coderabbitai

coderabbitai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dc0569f5-6814-4e3e-8f1e-4b9c1aac1986

📥 Commits

Reviewing files that changed from the base of the PR and between fd9ef6b and dff69df.

📒 Files selected for processing (1)
  • AGENTS.md

📝 Walkthrough

Walkthrough

The CMake source list for OpenMS/APPLICATIONS now includes TOPPBase_defs.h and TOPPExternalToolBase.h in generated header collections and the corresponding source group. Contributor guidance now requires matching public-header list updates.

Changes

Application header source registration

Layer / File(s) Summary
Register application headers
src/openms/include/OpenMS/APPLICATIONS/sources.cmake, AGENTS.md
Adds TOPPBase_defs.h and TOPPExternalToolBase.h to sources_list_h and documents the requirement to update matching public-header lists.

Possibly related PRs

Suggested reviewers: jpfeuffer

Poem

I’m a rabbit with headers to share,
Two new files now bloom in the list there.
CMake hops them along,
Into source groups they belong,
Neat little burrows laid bare.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: fixing installation of TOPPBase public headers.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@timosachsenberg
timosachsenberg enabled auto-merge (squash) July 21, 2026 08:41
@cbielow

cbielow commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

this should be added to AGENTS.md

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

last commit passed

@timosachsenberg
timosachsenberg disabled auto-merge July 21, 2026 09:34
@timosachsenberg
timosachsenberg merged commit c7d7e2e into OpenMS:develop Jul 21, 2026
15 checks passed
timosachsenberg added a commit that referenced this pull request Jul 22, 2026
…x) (#9779)

PR #9774 fixed a missing-header build failure for standalone consumers
of the core-only OpenMS SDK (introduced in #9752) but its merge did not
include a CHANGELOG entry.


Claude-Session: https://claude.ai/code/session_01QzTaD7LcUkA4fim9NkpiKp

Co-authored-by: Claude <[email protected]>
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