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