Skip to content

build: fix SagePatch requirement failure on non-SDL3 builds#198

Draft
fbraz3 wants to merge 2 commits into
mainfrom
fix-docker-sagepatch-190
Draft

build: fix SagePatch requirement failure on non-SDL3 builds#198
fbraz3 wants to merge 2 commits into
mainfrom
fix-docker-sagepatch-190

Conversation

@fbraz3

@fbraz3 fbraz3 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Description

Fixes #190

Changes

  • Made RTS_BUILD_OPTION_SAGE_PATCH inherit its default value from SAGE_USE_SDL3 dynamically in config-build.cmake, avoiding errors in cross-builds like MinGW which have SDL3 disabled by default.

fbraz3 added 2 commits July 10, 2026 16:46
Fixes #190

SagePatch requires SDL3. When building cross-platform variants
that don't use SDL3 by default (such as mingw cross-builds),
the SagePatch option was defaulting to ON, causing a CMake
fatal error during configuration.

This dynamically inherits the default for RTS_BUILD_OPTION_SAGE_PATCH
from SAGE_USE_SDL3, similar to how SAGE_UPDATE_CHECK is handled.
@fbraz3 fbraz3 marked this pull request as draft July 11, 2026 15:27
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.

Docker image build fails because of SagePatch

1 participant