Hello,<br><br>Hmmm this is interesting...<br>I didn&#39;t think building for iphone was considered cross compiling, since Xcode takes care of everything, but it makes sense...<br><br>I am currently using a custom-made toolchain file, more or less,
 as all these variables are set in the main cmakelists.txt.<br><br>However, only setting CMAKE_OSX_SYSROOT is enough to confuse cmake paths, so I wouldn&#39;t think the problem is in the toolchain file.<br><br>Anyway, I reverted to cmake2.8.9 ( on macports ) so that my project works properly.<br>

<br>Testing cmake with a publicly available toolchain like <a href="http://code.google.com/p/ios-cmake/">http://code.google.com/p/ios-cmake/</a> could also be a good step to see if there is any difference between cmake 2.8.9 and cmake 2.8.10.<br>

<br>And as mobile development is becoming more ubiquitous for everyone, having a list of tested toolchain for cross compiling as part of cmake release would be something i will be happy to see :-)<br><br>Sadly, I don&#39;t think I&#39;ll have more time to invest in this right now...<br>

<br>Thanks a lot for the help !<br>--<br clear="all"><div>AlexV<br></div><br><div class="gmail_quote">2013/1/24 Brad King <span dir="ltr">&lt;<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 01/21/2013 08:59 PM, Asmodehn Shade wrote:<br>
&gt; Is there any news on that ?<br>
<br>
</div>Sorry, I had this on my todo list to try to reproduce and it slipped<br>
through the cracks.<br>
<div class="im"><br>
&gt; From what I understand the CMAKE_OSX_SYSROOT variable is mandatory<br>
&gt; to specify the base SDK, and therefore to be able to build a project...<br>
<br>
</div>It shouldn&#39;t be necessary to build native OS X apps, but is for iphoneos.<br>
In order to cross-compile for iphone one must use a toolchain file:<br>
<br>
 <a href="http://www.cmake.org/Wiki/CMake_Cross_Compiling" target="_blank">http://www.cmake.org/Wiki/CMake_Cross_Compiling</a><br>
<br>
Are you using one?  Search the web for &quot;cmake iphone toolchain file&quot;<br>
to find some examples.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Brad<br>
</font></span></blockquote></div><br>