Skip to content

cmake: Simplify removing use of IS_PY3, PY3_BUILTIN and PY3_ALWAYS_BUILTIN #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jcfr
Copy link
Contributor

@jcfr jcfr commented Apr 28, 2025

  • Removes use of IS_PY3 and replaces both ${PY3_BUILTIN} and ${PY3_ALWAYS_BUILTIN} respectively with BUILTIN and ALWAYS_BUILTIN.
  • Fixes logic setting target properties: Attempt to set target properties only if target was effectively added. Checking if the ENABLE_<upper_extension_name> is set to ON only indicates that the extension was requested.

@jcfr jcfr enabled auto-merge (rebase) April 28, 2025 20:09
jcfr added 2 commits April 28, 2025 17:34
Attempt to set target properties only if target was effectively added.
Checking if the `ENABLE_<upper_extension_name>` is set to ON only indicates
that the extension was requested.
…ILTIN

This commit removes use of `IS_PY3` and replaces both `${PY3_BUILTIN}` and
`${PY3_ALWAYS_BUILTIN}` respectively with `BUILTIN` and `ALWAYS_BUILTIN`.
@jcfr jcfr force-pushed the simplify-unused-is-py3-variable branch from 91960e6 to 7f908da Compare April 28, 2025 21:34
@jcfr jcfr merged commit 20b2ff2 into python-cmake-buildsystem:master Apr 28, 2025
15 checks passed
@jcfr
Copy link
Contributor Author

jcfr commented Apr 28, 2025

Working toward addressing:

@jcfr jcfr deleted the simplify-unused-is-py3-variable branch April 29, 2025 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant