Skip to content

Use the TOPP tool macros of the OpenMS CMake package - #5

Draft
timosachsenberg wants to merge 1 commit into
mainfrom
claude/admiring-tesla-n9a3lm
Draft

timosachsenberg wants to merge 1 commit into
mainfrom
claude/admiring-tesla-n9a3lm

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Drops the copy of cmake/topp_tool_macros.cmake: OpenMS installs its TOPP tool macros with the CLI layer of its CMake package (OpenMSToolMacros.cmake, OpenMS/OpenMS#11042), and find_package(OpenMS ... COMPONENTS CLI), which this repository already does, includes them.

  • cmake/topp_tool_macros.cmake is removed, together with its include().
  • cmake/install_macros.cmake: its own openms_install_tool_registry() is gone; the package's version has the same signature.
  • cmake/find_openms.cmake: a core without the macros is refused at configure time with an explanation, not with an unknown-command error later.
  • MetaProSIP.tsv is now installed into the directory that OpenMS installation keeps its registries in (OPENMS_TOOL_REGISTRY_DESTINATION of the package; share/OpenMS/TOOLS by default, as before). For an OpenMS with another INSTALL_SHARE_DIR, ToolHandler would otherwise not read it.

Depended on OpenMS/OpenMS#11042, which is merged. Its pull-request CI builds the core from OpenMS develop (OPENMS_CORE_DEFAULT_REF), so it fails at configure with the message above until OpenMS/OpenMS#11042 is merged; after that it passes without a change here.

Test plan

Part of OpenMS/OpenMS#11035.

https://claude.ai/code/session_0149aXmZhZtnMkPBQ7zPTrXN


Generated by Claude Code

OpenMS installs its TOPP tool macros with the CLI layer of its CMake package
(OpenMSToolMacros.cmake, OpenMS/OpenMS#11042), and find_package(OpenMS
COMPONENTS CLI) includes them. Drop the copy of cmake/topp_tool_macros.cmake
and the local openms_install_tool_registry(): the package's version installs
MetaProSIP.tsv into the directory that OpenMS installation keeps its
registries in (OPENMS_TOOL_REGISTRY_DESTINATION, share/OpenMS/TOOLS by
default), so ToolHandler reads it next to OpenMS.tsv also for a non-default
layout. A core without the macros is refused at configure time with an
explanation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0149aXmZhZtnMkPBQ7zPTrXN

Copy link
Copy Markdown
Contributor Author

The pull-request CI is red on purpose until OpenMS/OpenMS#11042 is merged. It builds against OpenMS develop (9ad3eeb6, from the cache), which does not install the TOPP tool macros yet, so the new check in cmake/find_openms.cmake stops the configure:

The OpenMS CMake package in .../openms-core/install/lib/cmake/OpenMS does not provide the TOPP tool macros
(OpenMSToolMacros.cmake, openms_reset_topp_tools()), which register MetaProSIP with ToolHandler.

The workflow_dispatch run of this branch builds the core from the branch of OpenMS/OpenMS#11042 (core_ref=claude/admiring-tesla-n9a3lm, core_exact=true) and is the run that validates this PR. Once #11042 is in develop, the pull-request CI passes without a change here.


Generated by Claude Code

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