Re: [CMake] Platform dSPACE

2017-08-11 Thread Robin Verschueren
I've got a follow-up question about cross-compiling for dSpace. My Toolchain file so far: set(CMAKE_SYSTEM_NAME dSpace) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) file(TO_CMAKE_PATH "C:\\Program Files\\dSPACE RCPHIL 2016-B" DSPACE_TOOLS) set(DSPACE_PPCTOOLS

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
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 wrote: > On 23.06.2017 21:47, Robin Verschueren wrote: > > Dear CMake, > > We are trying to

Re: [CMake] Platform dSPACE

2017-06-23 Thread Nils Gladitz
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

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
Okay, that sounds reasonable. It's a pity, because that clutters the CMakeLists of potentially a lot of subfolders, e.g.: if(EMBEDDED_SYSTEM1) include(SYSTEM1_SPECIAL_FLAGS) elseif(EMBEDDED_SYSTEM2) include( etc. It would be nicer to just specify that from the command line: cmake -D

Re: [CMake] Platform dSPACE

2017-06-23 Thread Michael Ellery
> On Jun 23, 2017, at 1:11 PM, Robin Verschueren > wrote: > > 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

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
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

Re: [CMake] Platform dSPACE

2017-06-23 Thread Michael Ellery
> On Jun 23, 2017, at 1:01 PM, Michael Ellery wrote: > > >> On Jun 23, 2017, at 12:47 PM, Robin Verschueren >> wrote: >> >> Dear CMake, >> >> We are trying to build our application for the dSPACE embedded system >> (www.dspace.com), more

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
That's exactly what I did :) On Fri, 23 Jun 2017 at 13:01 Michael Ellery wrote: > > > On Jun 23, 2017, at 12:47 PM, Robin Verschueren < > robin.verschue...@gmail.com> wrote: > > > > Dear CMake, > > > > We are trying to build our application for the dSPACE embedded system >

Re: [CMake] Platform dSPACE

2017-06-23 Thread Michael Ellery
> On Jun 23, 2017, at 12:47 PM, 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

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
Dear Martin, That's exactly what I'm doing. The trouble is that I want to use set(CMAKE_SYSTEM_NAME dSPACE) or something similar. But then I get this warning that `dSPACE.cmake' is not found in the `Platform' folder. My question was how to circumvent this. Best regards, Robin On Fri, 23 Jun

Re: [CMake] Platform dSPACE

2017-06-23 Thread Martin Weber
Am Freitag, 23. Juni 2017, 19:47:32 CEST schrieb Robin Verschueren: > 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