Repository navigation
Use the TOPP tool macros of the OpenMS CMake package - #7
Draft
timosachsenberg wants to merge 1 commit into
Draft
timosachsenberg wants to merge 1 commit into
timosachsenberg wants to merge 1 commit into
Conversation
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
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 ( The workflow_dispatch run of this branch builds the core from the branch of OpenMS/OpenMS#11042 ( Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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), andfind_package(OpenMS ... COMPONENTS CLI), which this repository already does, includes them.cmake/topp_tool_macros.cmakeis removed, together with itsinclude().src/CMakeLists.txt:OpenMS-GUI.tsvis installed withopenms_install_tool_registry()instead of an owninstall(FILES). TheTOOLSsubset argument of the copy (unused here) is part of the core'sopenms_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.tsvis now installed into the directory that OpenMS installation keeps its registries in (OPENMS_TOOL_REGISTRY_DESTINATIONof the package;share/OpenMS/TOOLSby default, as before). For an OpenMS with anotherINSTALL_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-coredefault modesdk), 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
<prefix>/share/OpenMS/TOOLS. Against a package without them, configure stops with the new message.test.ymldispatched on this branch withcore_mode=source,core_ref=claude/admiring-tesla-n9a3lm(the branch of [BUILD,DOC] Install the TOPP tool macros with the CMake package OpenMS#11042),core_exact=true: green on macOS, Ubuntu g++/clang++ and Ubuntu ARM; the Windows job was cancelled during the core build (not a failure)core_ref=develop,core_exact=true: green on all five platforms, Windows includedPart of OpenMS/OpenMS#11035.
https://claude.ai/code/session_0149aXmZhZtnMkPBQ7zPTrXN
Generated by Claude Code