<br><br><div class="gmail_quote">On Thu, Jan 17, 2013 at 8:43 PM, Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>&gt;</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 Thursday 17 January 2013, Laszlo Papp wrote:<br>
</div><div class="im">&gt; On Thu, Jan 17, 2013 at 8:31 PM, Alexander Neundorf<br>
&gt; &lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a><br>
&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; do you mean using -DCMAKE_SYSTEM_NAME=qnx should trigger something ?<br>
&gt; &gt; Don&#39;t know, my experience is that cross compiling environments usually<br>
&gt; &gt; vary a<br>
&gt; &gt; lot in their setup.<br>
&gt;<br>
</div>&gt; *Current*<br>
&gt;<br>
&gt; cmake<br>
&gt; -DCMAKE_TOOLCHAIN_FILE=&quot;../frontends/blackberry/cmake/Toolchain-QNX-8.0.0.c<br>
&gt; make&quot; -DBUILD_WIKIREADER_BLACKBERRY=ON ..<br>
&gt;<br>
&gt; ==========<br>
&gt;<br>
&gt; *Proposed*<br>
<div class="im">&gt;<br>
&gt; cmake -DBUILD_WIKIREADER_BLACKBERRY=ON ..<br>
&gt;<br>
&gt; and<br>
&gt;<br>
&gt; ../CMakeListst.txt:<br>
&gt; set_toolchain_file(&quot;../frontends/blackberry/cmake/Toolchain-QNX-8.0.0.cmake<br>
&gt; &quot;)<br>
&gt;<br>
&gt; This is pseudo code, but you get my point, don&#39;t you? It would be shorter<br>
&gt; for the developer, packager or user to use cmake.<br>
&gt;<br>
&gt; &gt; Can you attach your toolchain file here so we can have a look ?<br>
&gt;<br>
&gt; <a href="http://quickgit.kde.org/?p=scratch%2Flpapp%2Fwikireader.git&amp;a=blob&amp;h=2e3e19" target="_blank">http://quickgit.kde.org/?p=scratch%2Flpapp%2Fwikireader.git&amp;a=blob&amp;h=2e3e19</a><br>
&gt; 7590bfdce77ae282be840d7b167afafb94&amp;hb=7bf46fccfa4c087500a12116588e071b1183b<br>
&gt; 4e7&amp;f=frontends%2Fblackberry%2Fcmake%2FToolchain-QNX-8.0.0.cmake<br>
<br>
<br>
</div>oh, this is definitely more than what should be necessary.<br>
<br>
Why do you have to set all the suffixes and prefixes ?<br></blockquote><div><br>I will clean it up later once the project works for an initial release.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

This should go into Platforms/QNX.cmake.<br>
<br>
Manually setting CMAKE_AR etc. should also not be necessary, this should also<br>
go into QNX.cmake or QNX-qcc.cmake or somewhere like this.<br></blockquote><div><br>Feel free to get anything upstreamed from my file.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The specific build flags are your choice.<br></blockquote><div><br>I see. It means I can avoid the -DCMAKE_TOOLCHAIN_FILE in the end of the day.<br><br>Thank you for your reply.<br><br>Laszlo<br></div></div>