<div dir="ltr">Yeah, my current approach is exactly creating different toolchain files.<br><br>Best Regards,<br>ashi<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 8:19 PM, Yngve Inntjore Levinsen <span dir="ltr"><<a href="mailto:yngve.levinsen@gmail.com" target="_blank">yngve.levinsen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 03. april 2013 13:13, Johannes Zarl wrote:<br>
> Hi,<br>
><br>
> On Tuesday, 2. April 2013, 06:42:47, Ashi wrote:<br>
>> I think I find something to explain this: the config.cmake(the<br>
>> CMAKE_TOOLCHAIN_FILE) is reloaded several times. on first-load, the A is<br>
>> set, but on second-load and later-load, the A is not set. I think I can get<br>
>> around this problem when A is kept set. However, I don't know how can I<br>
>> keep the value set in cmake. Could anyone give me some suggestion? Thanks!<br>
> I'm not entirely sure what you're trying to do, but it seems like you would<br>
> want to make A, B, and C into cache variables. That way subsequent cmake runs<br>
> will use the same value...<br>
><br>
> Johannes<br>
><br>
<br>
</div>Hi,<br>
<br>
I'm thinking that one solution could be to create three (or four?)<br>
toolchain files, one for each if clause?<br>
<br>
Cheers,<br>
Yngve<br>
<div class="HOEnZb"><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>