[CMake] Platform dSPACE

Robin Verschueren robin.verschueren at gmail.com
Fri Jun 23 16:11:31 EDT 2017


Thank you, that makes sense.

If I do that, how can I set specific settings for this Platform only? It
seems that e.g.

set(CMAKE_INCLUDE_FLAG_C "-J")

in the Toolchain file is overwritten by CMake after processing the
Toolchain file
(more specifically, in CMakeGenericSystem.cmake).

Or should I set this variable somewhere else?

Best,
Robin


On Fri, 23 Jun 2017 at 13:03 Michael Ellery <mellery451 at gmail.com> wrote:

>
> > On Jun 23, 2017, at 1:01 PM, Michael Ellery <mellery451 at gmail.com>
> wrote:
> >
> >
> >> On Jun 23, 2017, at 12:47 PM, Robin Verschueren <
> robin.verschueren at gmail.com> 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, 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..
> >>
> >>
> >> Best regards,
> >> Robin
> >> --
> >
> > what happens if you set
> -DCMAKE_TOOLCHAIN_FILE=path/to/your/toolchain.cmake  when running
> cmake…does that give any different result?
> >
>
> sorry - I misunderstood the nature of your error. I think this might be
> relevant:
>
>     "If your target is an embedded system without OS set CMAKE_SYSTEM_NAME
> to "Generic”.   “
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170623/48395c43/attachment.html>


More information about the CMake mailing list