Path: csiph.com!weretis.net!feeder6.news.weretis.net!panix!.POSTED.::1!not-for-mail From: Grant Edwards Newsgroups: comp.arch.embedded Subject: Re: Makefile or IDE? Date: Mon, 6 Dec 2021 16:02:24 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 6 Dec 2021 16:02:24 -0000 (UTC) Injection-Info: reader1.panix.com; posting-host="::1"; logging-data="9123"; mail-complaints-to="abuse@panix.com" User-Agent: slrn/1.0.3 (Linux) Xref: csiph.com comp.arch.embedded:30951 On 2021-12-06, David Brown wrote: > On 06/12/2021 14:51, Grant Edwards wrote: >> I use CMake for cross-compilation for microcontroller stuff. I don't >> use it for my own code, but there are a few 3rd-party libraries that >> use it, and I don't have any problems configuring it to use a cross >> compiler. > > OK. As I said, I haven't looked in detail or tried much. Maybe I will, > one day when I have time. I see no reason at all to use for embedded code unless you want to use a large 3rd party library that already uses it, and you want to use that library's existing cmake build process. For smaller libraries, it's probably easier to write a makefile from scratch. IMO, configuring stuff that uses cmake seems very obtuse and fragile — but that's probably because I don't use it much. -- Grant