Skip to content

Add condition to check CMAKE_SYSTEM_VERSION defined #2204

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toge
Copy link

@toge toge commented Aug 9, 2025

CMAKE_SYSTEM_VERSION is defined on specific system (ex. Windows and macOS).
Please add a condition to check CMAKE_SYSTEM_VERSION defined.

@yhirose
Copy link
Owner

yhirose commented Aug 9, 2025

@toge thanks for the pull request!
@sum01 @jimmy-park could you please review it for me as usual?

@sum01
Copy link
Contributor

sum01 commented Aug 10, 2025

Isn't it only not defined, as per spec, if cross-compiling and you forget to set it?
In a normal build it should get set automatically.

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.

3 participants