Skip to content

Use the build settings exported by OpenMS - #10

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

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

Conversation

@timosachsenberg

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)

The GUI layer 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_library_compiler_flags() and 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.

Validation

A workflow_dispatch run passed on all 5 platforms. It used core_mode=source, core_ref=export-build-settings and core_exact=true, so OpenMS was built from the branch of OpenMS#11056.

The PR checks use the newest nightly SDK, which does not have the settings yet. They fail at configure with the message above until OpenMS#11056 is merged and a nightly SDK containing it is published.


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). The GUI layer 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 use the nightly SDK 2026.12.06, which does not have the build settings yet (find_openms.cmake:36: "does not provide its build settings (OpenMSBuildSettings.cmake …)"). They pass against an OpenMS core built from the branch of OpenMS/OpenMS#11056 (validation run, all 5 jobs). Re-run once OpenMS#11056 is merged and a nightly SDK containing it is published.


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