Skip to content
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

Fix finding patch executable when cross-compiling on windows. #627

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

rokups
Copy link
Contributor

@rokups rokups commented Dec 29, 2024

WIN32 checks whether current build context is windows. This is not correct in case of cross-compiling, because we are interested in finding host's tools, not SDK's tools.

@TheLartians
Copy link
Member

Thanks for raising the issue and submitting a fix! For some reason I cannot get the CI to run. Could you check if you can enable GitHub Actions on your fork?

`WIN32` checks whether current build context is windows. This is not correct in case of cross-compiling, because we are interested in finding host's tools, not SDK's tools.
@rokups
Copy link
Contributor Author

rokups commented Dec 29, 2024

Hmm somehow workflows do not start on my repo. I see workflows triggered on CPM.cmake repo, but github says a maintainer has to approve them. Someone has to click something somewhere..

@TheLartians
Copy link
Member

Ah I was using the "new merge experience" from GitHub and it was missing the button. Turns out switching to classic made it appear. Thanks!

Copy link
Member

@TheLartians TheLartians left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@TheLartians TheLartians merged commit cd28d44 into cpm-cmake:master Dec 29, 2024
11 checks passed
@TheLartians
Copy link
Member

TheLartians commented Dec 29, 2024

Fix deployed in v0.40.5 🎉

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