Skip to content

Use the build settings exported by OpenMS - #7

Draft
timosachsenberg wants to merge 1 commit into
mainfrom
use-exported-build-settings
Draft

timosachsenberg wants to merge 1 commit into
mainfrom
use-exported-build-settings

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

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.cmake includes OPENMS_BUILD_SETTINGS_FILE (OpenMSBuildSettings.cmake) right after find_package(OpenMS). That provides:

    • the minimum check;
    • openms_add_executable_compiler_flags();
    • add_asan_to_target().

    If the installation lacks the file, configuration stops with a clear message.

  • CMakeLists.txt drops the three include()s. The ADDRESS_SANITIZER option stays here.

  • The compiler check now runs after find_package(OpenMS) instead of before it. Nothing in between depends on it.

  • AGENTS.md notes 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-settings and core_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

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

Copy link
Copy Markdown
Contributor Author

The PR checks fail at configure, as expected: they build the core from OpenMS develop, which does not have the build settings yet (find_openms.cmake:31: "does not provide its build settings (OpenMSBuildSettings.cmake …)"). Against a core built from the branch of OpenMS/OpenMS#11056 (validation run) Linux and macOS pass; Windows is still building the core. Re-run once OpenMS#11056 is merged.


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