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 <http://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

cm...@www.cmake.org <mailto:cm...@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

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to