<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le mer. 28 nov. 2018 à 21:03, Rolf Eike Beer <<a href="mailto:eike@sf-mail.de">eike@sf-mail.de</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Dienstag, 27. November 2018, 19:55:56 CET schrieb Eric Noulard:<br>
<br>
> I think that most of the time specifying the toolchain on the command line<br>
> drives you to some superbuild structure.<br>
<br>
Which is not bad by itself, but I would like to see that CMake can provide <br>
things that avoid people reinventing the boilerplate code, and probably <br>
getting them wrong at least 80% of the time. Like they would do with <br>
dependencies and other things if they would write their Makefiles by hand <br>
instead of using CMake, just one level higher.<br></blockquote><div><br></div><div>I do totally agree with this.</div><div>Superbuild is nice but you have to write a lot of boilerplate CMake code *each time* you want to do it.   </div><div>May be a good path would be to have a "builtin" support for superbuild in CMake which</div><div>would make its usage lighter than the usual ExternalProject_Add.</div><div><br></div><div>When ones do cross compile for the host + one or several target a lighter "add_superbuild"</div><div>API could be design. I'll try to think about it more thoroughly and do some proposal.</div><div>Ideally we shouldn't need to provide many parameters beside the toolchain and a way</div><div>to specify "the host build".</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> > The wish-season is coming up, so that's sort of what I would like to<br>
> > have. Now it's your turn. No bikeshedding please, only deliveries ;)<br>
> <br>
> I wish an integrated multi-target cross building support in CMake with<br>
> little or no flow-control scripting command in the CMakeLists.txt.<br>
<br>
That would mean introducing HOST and TARGET flags to every find_* call, I'm <br>
not sure if that is cleaner than explicit if()'s. But I'm not fundamentally <br>
opposed to it, I'm just not sure it's worth the effort.<br></blockquote><div><br></div><div>Sure, I agree too.</div><div>May not be worth, let's dig the "light superbuild" approach a little further first.</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div>