Repository navigation
Use the TOPP tool macros exported by OpenMS - #6
Merged
Merged
Conversation
cmake/topp_tool_macros.cmake was a copy of the TOPP tool macros of OpenMS, kept until the core exported them (OpenMS/OpenMS#11035). The OpenMS CMake package now 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 the tool. Drop the copy, and the openms_install_tool_registry() of cmake/install_macros.cmake: the exported macros provide that function too, and since find_package() runs after install_macros.cmake is included, the exported definition was already the one in use. 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
timosachsenberg
marked this pull request as ready for review
December 6, 2026 14:26
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
cmake/topp_tool_macros.cmakewas a copy of the TOPP tool macros of OpenMS, kept until the core exported them (OpenMS/OpenMS#11035). The OpenMS CMake package now installs them with the CLI layer asOpenMSToolMacros.cmake(install componentcmake_cli).OpenMSConfig.cmakeincludes them whenCOMPONENTS CLIis requested, andcmake/find_openms.cmakealready makes that request beforesrc/declares the tool.cmake/topp_tool_macros.cmakeand itsinclude()inCMakeLists.txt.openms_install_tool_registry()fromcmake/install_macros.cmake. The exported macros provide it too.find_package(OpenMS)runs afterinstall_macros.cmakeis included, so the exported definition was already the one in use. It installs to the core'sOPENMS_TOOL_REGISTRY_DESTINATION, which isshare/OpenMS/TOOLSby default, the same asINSTALL_SHARE_DIR/TOOLShere.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 "Copied CMake" note inAGENTS.md. The class-test framework is exported now too ([BUILD] Export the class-test framework as package component TestFramework OpenMS#11048), and this repository has no class tests that would use it.The registry output is unchanged: same format, same ordering.
Generated by Claude Code