[CMake] Platform dSPACE

Robin Verschueren robin.verschueren at gmail.com
Fri Jun 23 16:37:24 EDT 2017


Dear Nils,

Perfect! This was exactly what I was looking for.
It works, and the CMAKE_INCLUDE_FLAG_C
is not overwritten.

Thanks,
Robin

On Fri, 23 Jun 2017 at 13:29 Nils Gladitz <nilsgladitz at gmail.com> wrote:

> On 23.06.2017 21:47, Robin Verschueren wrote:
>
> Dear CMake,
>
> We are trying to build our application for the dSPACE embedded system
> (www.dspace.com), more specifically their MicroAutobox-II. This makes
> use of a specific compiler called mccppc (Microtec C/C++ PowerPC compiler).
>
> I was following the instructions on this wiki page
> <https://cmake.org/Wiki/CMake_Cross_Compiling>, when I got the following
> warning,
> when trying to use a custom 'Toolchain' file:
>
> System is unknown to cmake, create:
>
> Platform/dSPACE to use this system, please send your config file to
>
> cmake at www.cmake.org so it can be added to cmake
>
> We would be glad to send it to you when it is finished, but in the
> meantime,
> we cannot debug our toolchain file because of above warning.
>
> Is there a way of including it without having to include it in the
> official CMake
> distribution? I tried setting CMAKE_MODULE_PATH but that did not help..
>
>
> In the Toolchain file:
>     set(CMAKE_SYSTEM_NAME dSPACE)
>
>     list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
>
>     ...
>
> Then having Platform/dSPACE.cmake next to your toolchain file should work
> (works for me).
>
>
> Nils
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170623/f6f8f1ed/attachment.html>


More information about the CMake mailing list