Repository navigation
Use the TOPP tool macros exported by OpenMS - #9
Conversation
cmake/topp_tool_macros.cmake was a copy of the TOPP tool macros of OpenMS (openms_reset_topp_tools, openms_topp_tool, openms_write_tool_registry). The OpenMS CMake package installs them as OpenMSToolMacros.cmake with the CLI layer and includes them on find_package(OpenMS COMPONENTS CLI), which cmake/find_openms.cmake already does before src/ declares any tool. Drop the copy and fail at configure time with a clear message when the OpenMS installation does not provide the macros. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0149aXmaLwgm7kqfDpQXyQYf
|
No actionable comments were generated in the recent review. Walkthrough
Change: Refactor Merge Risk:
|
Summary
cmake/topp_tool_macros.cmakewas a copy of the TOPP tool macros of OpenMS (openms_reset_topp_tools(),openms_topp_tool(),openms_write_tool_registry()). The OpenMS CMake package ships them with the CLI layer asOpenMSToolMacros.cmake(install componentcmake_cli, in the SDK since the 2026-12-03 nightly), andOpenMSConfig.cmakeincludes them whenCOMPONENTS CLIis requested.cmake/find_openms.cmakealready does that beforesrc/declares any tool.cmake/topp_tool_macros.cmakeand itsinclude()inCMakeLists.txt.cmake/find_openms.cmake: stop at configure time with a clear message if the OpenMS installation does not provide the macros.src/tests/topp/check_tool_registry.cmakeand the note inAGENTS.md.The registry is written the same way: the OpenMS version is a superset of the copy (it adds
openms_install_tool_registry(), a.tsvname check and a duplicate check forTOOLS). The output format and ordering are identical. The registry install insrc/CMakeLists.txtis unchanged.This does not depend on OpenMS/OpenMS#11048, so it is a separate PR from #8.
Generated by Claude Code
Summary by CodeRabbit