Re: [CMake] Crosscompilation woes

2016-10-10 Thread Robert Bielik
: Cmake@cmake.org Subject: Re: [CMake] Crosscompilation woes Don't use environment variables to set the ARM compilers in your situation, use a toolchain file to specify them instead. Your CMake experience will generally be smoother if you specify cross-compile details via toolchain files. If you

Re: [CMake] Crosscompilation woes

2016-10-10 Thread Craig Scott
ake use those when generating the > makefiles. > > > > Ideas are most welcome! > > > > Regards > > /R > > > > *From:* Craig Scott [mailto:craig.sc...@crascit.com] > *Sent:* den 10 oktober 2016 10:47 > *To:* Robert Bielik > *Cc:* Cmake@cmake.org &

Re: [CMake] Crosscompilation woes

2016-10-10 Thread Robert Bielik
CXX environment variables are set, which makes cmake use those when generating the makefiles. Ideas are most welcome! Regards /R From: Craig Scott [mailto:craig.sc...@crascit.com] Sent: den 10 oktober 2016 10:47 To: Robert Bielik Cc: Cmake@cmake.org Subject: Re: [CMake] Crosscompilation woes Here&#

Re: [CMake] Crosscompilation woes

2016-10-10 Thread Robert Bielik
porto...@imag.fr] Sent: den 10 oktober 2016 13:14 To: Robert Bielik ; Cmake@cmake.org Subject: Re: [CMake] Crosscompilation woes It is pretty much standard. I wrote the toolchain file adapting different examples. the Cmakelist is for the subdirectory of my parser (called SIT_parser). The trick si t

Re: [CMake] Crosscompilation woes

2016-10-10 Thread portolan
code for this particular bit ? Regards /R *From:*portolan [mailto:michele.porto...@imag.fr] *Sent:* den 10 oktober 2016 11:33 *To:* Robert Bielik ; Craig Scott *Cc:* Cmake@cmake.org *Subject:* Re: [CMake] Crosscompilation woes I cannot answer your question: I am a newcomer to Cmake (I have

Re: [CMake] Crosscompilation woes

2016-10-10 Thread Robert Bielik
/R From: portolan [mailto:michele.porto...@imag.fr] Sent: den 10 oktober 2016 11:33 To: Robert Bielik ; Craig Scott Cc: Cmake@cmake.org Subject: Re: [CMake] Crosscompilation woes I cannot answer your question: I am a newcomer to Cmake (I have been using it for less than 6 months) and on my

Re: [CMake] Crosscompilation woes

2016-10-10 Thread portolan
o:craig.sc...@crascit.com] *Sent:* den 10 oktober 2016 10:47 *To:* Robert Bielik *Cc:* Cmake@cmake.org *Subject:* Re: [CMake] Crosscompilation woes Here's one possible solution (not perfect, but has been working in production for us for a while now for a similar scenario to what you de

Re: [CMake] Crosscompilation woes

2016-10-10 Thread portolan
rom:*Craig Scott [mailto:craig.sc...@crascit.com] *Sent:* den 10 oktober 2016 10:47 *To:* Robert Bielik <mailto:robert.bie...@dirac.com> *Cc:* Cmake@cmake.org <mailto:Cmake@cmake.org> *Subject:* Re: [CMake] Crosscompilation woes Here's one possible solution

Re: [CMake] Crosscompilation woes

2016-10-10 Thread Robert Bielik
Cmake@cmake.org Subject: Re: [CMake] Crosscompilation woes In my project I build on Linux i686 and I use a Toolchain file to specify the ARM cross-compiler https://cmake.org/cmake/help/v3.6/manual/cmake-toolchains.7.html The nice thing is that if you mark some files as "generated" CMAKE will

Re: [CMake] Crosscompilation woes

2016-10-10 Thread Robert Bielik
Thanks Craig, Your solution will work for me I think. Regards /R From: Craig Scott [mailto:craig.sc...@crascit.com] Sent: den 10 oktober 2016 10:47 To: Robert Bielik Cc: Cmake@cmake.org Subject: Re: [CMake] Crosscompilation woes Here's one possible solution (not perfect, but has been wo

Re: [CMake] Crosscompilation woes

2016-10-10 Thread Craig Scott
Here's one possible solution (not perfect, but has been working in production for us for a while now for a similar scenario to what you describe): http://stackoverflow.com/q/36084785/1938798 An alternative is a superbuild arrangement which would require a top level project to drive two sub-builds

[CMake] Crosscompilation woes

2016-10-10 Thread Robert Bielik
Hi all, I am crosscompiling a project for arm (on linux i686), and use codegeneration tools within the project (together with add_custom_command). Of course, this will fail, since the tools are compiled for arm also and thus won't execute on my host system. So the tools need to be compiled for