Skip to content

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

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

timosachsenberg wants to merge 1 commit into
developfrom
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().
  • src/CMakeLists.txt: OpenMS-GUI.tsv is installed with openms_install_tool_registry() instead of an own install(FILES). The TOOLS subset argument of the copy (unused here) is part of the core's openms_write_tool_registry() now.
  • cmake/find_openms.cmake: a core without the macros is refused at configure time with an explanation, not with an unknown-command error later.
  • OpenMS-GUI.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 uses the published nightly SDK (openms-core default mode sdk), so it fails at configure with the message above until OpenMS/OpenMS#11042 is merged and a nightly SDK built after it is published; 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
(its TOOLS subset of openms_write_tool_registry(), unused here, is part of
the core's version now) and install OpenMS-GUI.tsv with the package's
openms_install_tool_registry(), which puts it into the directory that OpenMS
installation keeps its registries in (OPENMS_TOOL_REGISTRY_DESTINATION,
share/OpenMS/TOOLS by default). 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 and a nightly built after it is published. It builds against the published nightly SDK (OpenMS-SDK-2026.12.02, the default sdk mode of openms-core), 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-SDK-2026.12.02-Linux-x86_64/lib/cmake/OpenMS does not provide the
TOPP tool macros (OpenMSToolMacros.cmake, openms_reset_topp_tools()), which register the GUI TOPP tools with ToolHandler.

The workflow_dispatch run of this branch builds the core from the branch of OpenMS/OpenMS#11042 (core_mode=source, core_ref=claude/admiring-tesla-n9a3lm, core_exact=true) and is the run that validates this PR. The pull-request CI passes without a change here once a nightly SDK with the macros exists.


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