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

CMAKE_MAKE_PROGRAM for mingw #10770

Merged

Conversation

lasote
Copy link
Contributor

@lasote lasote commented Mar 14, 2022

Changelog: Fix: Set -DCMAKE_MAKE_PROGRAM when the generator is for MinGW and the conf tools.gnu:make_program is set.
Docs: omit

@lasote lasote requested a review from memsharded March 14, 2022 12:12
@lasote lasote marked this pull request as draft March 14, 2022 12:13
@lasote lasote changed the title Feature/cmake toolchain make program CMAKE_MAKE_PROGRAM for mingw Mar 14, 2022
@lasote lasote marked this pull request as ready for review March 14, 2022 13:28
@lasote lasote added this to the 1.47 milestone Mar 14, 2022
arg_list.append('-DCMAKE_SH="CMAKE_SH-NOTFOUND"')
cmake_make_program = self._conanfile.conf.get("tools.gnu:make_program", default=None)
Copy link
Member

Choose a reason for hiding this comment

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

I have had a second look, just in case, and it really seems difficult.
So I am approving and merging this. However, I think it would be better if we started storing this arguments in CMakeToolchain in the conanbuild.conf file, or even better, if we start considering moving to a CMakePresets.json compatible format.

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.

None yet

2 participants