Skip to content

Conversation

@trustytrojan
Copy link
Contributor

This sets the CMake Policy 0077 to NEW behavior, allowing existing normal variables to not be overridden by option() calls. I would like to have this; otherwise older versions of CMake build the Lua compiler/standalone interpreter when I explicitly tell it not to with set(LUA_BUILD_BINARY OFF) and set(LUA_BUILD_COMPILER OFF).

An example from the GitHub Actions ubuntu-latest runner:
image
image

(I don't want this building since it's being built for a platform it'll never run on...)

@walterschell walterschell merged commit 504ef66 into walterschell:master Jul 31, 2025
8 checks passed
@walterschell
Copy link
Owner

Thank you for the PR!

@trustytrojan trustytrojan deleted the cmake-policy-0077-new branch August 2, 2025 16:45
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