-
-
Notifications
You must be signed in to change notification settings - Fork 559
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
make mingw
should forward/use CC, CXX, HOST variables if set
#484
Comments
Funnily enough, with this hacky 3 line edit, it works just fine:
Now the problem is, obviously that will break it for users who are not overriding CC and CXX via the command line. Maybe someone who actually knows their way around cmake can fix this? Ideally what it should do is see if the compilers set in the toolchain file actually exist, and only if they don't, use CC and CXX from the command line as provided to |
I've switched to a different markdown library now that is easier to build for more unusual platforms. Would be cool though if at least for others this could be eventually addressed. |
Right now,
make mingw
seems to have some notion of MinGW hardcoded. This is nice as a start until you try to run it on a distribution where it's named differently. So I thought why not just specify CXX, CXX, and HOST, like the cmake error actually encourages me to, but it's all ignored:I even tried to modify cmark's Makefile to pass on the CC, CXX, HOST vars to the cmake call (which I think they should be), but cmake still ignores it. If that could be made to work that would be great, because with autotools and similar, setting CC/CXX and specifying the
--host
version works perfectly, same for most plain Makefiles that don't use cmake behind the scenes.The text was updated successfully, but these errors were encountered: