Repository navigation
Use the build settings exported by OpenMS - #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
cmake/min_compiler_versions.cmake, cmake/compiler_flags.cmake and cmake/AddressSanitizer.cmake were copies of the OpenMS files. The OpenMS CMake package now installs them with the core layer and names them OPENMS_BUILD_SETTINGS_FILE (OpenMSBuildSettings.cmake). MetaProSIP is compiled against the OpenMS headers, so it uses the compiler minimums and flags of OpenMS: cmake/find_openms.cmake includes the settings right after find_package(OpenMS), and fails with a clear message when the OpenMS installation does not provide them. Drop the copies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0149aXmaLwgm7kqfDpQXyQYf
Contributor
Author
|
The PR checks fail at configure, as expected: they build the core from OpenMS 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
Depends on OpenMS/OpenMS#11056, which installs the build settings of OpenMS with its CMake package.
This removes three files that were copies of the OpenMS ones:
cmake/compiler_flags.cmake(byte-identical)cmake/AddressSanitizer.cmake(byte-identical)cmake/min_compiler_versions.cmake(same minimum versions, different comments)MetaProSIP is compiled against the OpenMS headers, so its compiler minimums and flags should be the ones of OpenMS, not a copy that can drift.
cmake/find_openms.cmakeincludesOPENMS_BUILD_SETTINGS_FILE(OpenMSBuildSettings.cmake) right afterfind_package(OpenMS). That provides:openms_add_executable_compiler_flags();add_asan_to_target().If the installation lacks the file, configuration stops with a clear message.
CMakeLists.txtdrops the threeinclude()s. TheADDRESS_SANITIZERoption stays here.The compiler check now runs after
find_package(OpenMS)instead of before it. Nothing in between depends on it.AGENTS.mdnotes where the settings come from, and fixes the directory overview, which still described the tool macros as a copy.Validation
A workflow_dispatch run uses
core_mode=source,core_ref=export-build-settingsandcore_exact=true, so OpenMS is built from the branch of OpenMS#11056.It passed on all 3 platforms: Linux, macOS and Windows.
The PR checks build the core from OpenMS
develop. They fail at configure with the message above until OpenMS#11056 is merged.Generated by Claude Code