<div dir="ltr">Dear Nils,<div><br></div><div>Perfect! This was exactly what I was looking for.</div><div>It works, and the CMAKE_INCLUDE_FLAG_C </div><div>is not overwritten.</div><div><br></div><div>Thanks,</div><div>Robin<br><br><div class="gmail_quote"><div dir="ltr">On Fri, 23 Jun 2017 at 13:29 Nils Gladitz <<a href="mailto:nilsgladitz@gmail.com">nilsgladitz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
<div class="m_3110800915616364462moz-cite-prefix">On 23.06.2017 21:47, Robin Verschueren
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span style="font-size:13px">Dear CMake,</span>
<div style="font-size:13px"><br>
</div>
<div style="font-size:13px">We are trying to build our
application for the dSPACE embedded system</div>
<div style="font-size:13px">(<a href="http://www.dspace.com" target="_blank">www.dspace.com</a>),
more specifically their MicroAutobox-II. This makes</div>
<div style="font-size:13px">use of a specific compiler called
mccppc (Microtec C/C++ PowerPC compiler).</div>
<div style="font-size:13px"><br>
</div>
<div style="font-size:13px">I was following the instructions on
<a href="https://cmake.org/Wiki/CMake_Cross_Compiling" target="_blank">this wiki page</a>, when I got the
following warning, </div>
<div style="font-size:13px">when trying to use a custom
'Toolchain' file:</div>
<div style="font-size:13px"><br>
</div>
<div style="font-size:13px">
<p style="margin:0px;font-size:10px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">System
is unknown to cmake, create:</span></p>
<p style="margin:0px;font-size:10px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Platform/dSPACE
to use this system, please send your config file to </span></p>
<p style="margin:0px;font-size:10px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><a href="mailto:cmake@www.cmake.org" target="_blank">cmake@www.cmake.org</a> so it can
be added to cmake</span></p>
</div>
<div style="font-size:13px"><br>
</div>
<div style="font-size:13px">We would be glad to send it to you
when it is finished, but in the meantime,</div>
<div style="font-size:13px">we cannot debug our toolchain file
because of above warning.</div>
<div style="font-size:13px"><br>
</div>
<div style="font-size:13px">Is there a way of including it
without having to include it in the official CMake</div>
<div style="font-size:13px">distribution? I tried setting
CMAKE_MODULE_PATH but that did not help..</div>
</div>
</blockquote>
<br></div><div text="#000000" bgcolor="#FFFFFF">
In the Toolchain file:<br>
set(CMAKE_SYSTEM_NAME dSPACE)<br>
<br>
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})<br>
<br>
...<br>
<br>
Then having Platform/dSPACE.cmake next to your toolchain file should
work (works for me).</div><div text="#000000" bgcolor="#FFFFFF"><br>
<br>
Nils<br>
<br>
</div></blockquote></div></div></div>