Skip to content

[BUILD] Make AUTOMOC explicit for core libraries - #10094

Closed
timosachsenberg wants to merge 1 commit into
OpenMS:developfrom
timosachsenberg:architecture/batch-10-explicit-automoc
Closed

timosachsenberg wants to merge 1 commit into
OpenMS:developfrom
timosachsenberg:architecture/batch-10-explicit-automoc

Conversation

@timosachsenberg

Copy link
Copy Markdown
Contributor

Part 10 of #10083.

The shared library helper currently enables AUTOMOC whenever Qt6::moc exists, causing OpenMS and OpenSwathAlgo to run Qt code generation in GUI-enabled builds. Remove that ambient decision and explicitly set AUTOMOC OFF on both core targets.

OpenMS_GUI already sets CMAKE_AUTOMOC ON before creating its target, and keeps that behavior. The generic helper continues to honor each caller's setting.

Validation: source checks confirm both core target properties and the GUI opt-in, with git diff --check clean. Existing PR CI covers GUI-enabled builds and pyOpenMS configurations. No new C++ behavior or local OpenMS build; draft until CI passes.

Coordinate the small CMake overlaps with #10093 and the existing vcpkg work in #9972/#10063.

@jpfeuffer

Copy link
Copy Markdown
Contributor

Makes sense

Copy link
Copy Markdown
Contributor Author

Superseded by #10099, which carries the same change rebased onto current develop on an OpenMS-hosted branch. Closing this one.


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