I haven't done anything with toolchains. I will take a look at the page and give it a go.<div><br></div><div>Thanks,</div><div><br></div><div>Steve</div><div><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 3:16 PM, Peter Kümmel <span dir="ltr"><<a href="mailto:syntheticpp@gmx.net">syntheticpp@gmx.net</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 15.02.2011 22:52, Steven Wilson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In my CMake configuration files I have something like the following:<br>
<br>
<br>
if(SYSTEM STREQUAL "iOS")<br>
set(CMAKE_C_COMPILER "foo" CACHE STRING "message" FORCE)<br>
set(CMAKE_CXX_COMPILER "bar" CACHE STRING "message" FORCE)<br>
endif(SYSTEM STREQUAL "iOS")<br>
</blockquote>
<br></div>
Do you know this wiki page:<br>
<a href="http://www.cmake.org/Wiki/CMake_Cross_Compiling" target="_blank">http://www.cmake.org/Wiki/CMake_Cross_Compiling</a><br>
<br>
I never had such problems you describe by writing a small<br>
toolchain file and initially pass it to cmake by -DCMAKE_TOOLCHAIN_FILE=...<br>
<br>
Later on I only call "cmake ."<br>
<br>
Peter<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>
</blockquote></div><br></div>