-
-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Preventing the toolchain to run as an environment variable breaks further runs. #146
Comments
Hmmm, i have never had to unset the environment variables between runs? I cannot remember either why i changed that in the first place... Seems to run equally good using both the "old" solution as with the ENV solution. |
Does it work if you do something like this?
It will disable the toolchain, right? Similarly, without manually setting the env variable, if you run it twice:
Then I expect the first run to set the env variable (just like I have a slightly different setup where my cmake project calls cmake projects as subprocesses, but I think it's similar 🤔. I mean it's not a big deal for me, I just remove it now that I know it breaks my build. Just wanted to take this as an opportunity to question it 🙂. |
Let me also add some notes about the same issue: |
An interesting, related issue is if a CMake project includes a subproject, where the subproject will set and use the toolchain. When the top level project then tries to use the same tool chain, it does not configure fully. This leads to the situation where e.g. I'm employing the workaround |
It is still here, and given this past message:
@leetal: would you be open to a PR that would either remove those lines or add an option (e.g. |
🎉 |
This breaks my build:
Where the previous version is fine:
I believe that's because it now sets this as an environment variable, and the second time I try to build a project using the toolchain, it just doesn't do anything.
Feels weird to me that I need to
unset _IOS_TOOLCHAIN_HAS_RUN
between two cmake runs, though 🤔.Any thoughts on that? 😇
The text was updated successfully, but these errors were encountered: