git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] cmake: determine list of extra built-ins dynamically

From
Jeff King <peff@peff.net>
Date
Dec 4, 2020, 21:11 UTC
Message-ID
<X8qmClPjwYWIoExP@coredump.intra.peff.net>
In-Reply-To
<pull.807.git.1607110436367.gitgitgadget@gmail.com>
On Fri, Dec 04, 2020 at 07:33:56PM +0000, Johannes Schindelin via GitGitGadget wrote:
> In 0a21d0e08902 (Makefile: mark git-maintenance as a builtin,
> 2020-12-01), we marked git-maintenance as a builtin in the Makefile, but
> forgot to do the same in `CMakeLists.txt`.
Oof, right.
> Rather than always play catch-up and adjust `git_builtin_extra`
> manually, use the `BUILT_INS` definitions in the Makefile as
> authoritative source and generate `git_builtin_extra` dynamically.

Yay. This is exactly how I'd hoped things would work or the cmake file in general. I don't mind following micro-formats within our Makefile to keep things easier for the cmake parsing side.

>  contrib/buildsystems/CMakeLists.txt | 15 +++++++++++----
>  1 file changed, 11 insertions(+), 4 deletions(-)

The implementation looks plausibly correct to me (bearing in mind that I've never written cmake).

-Peff
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 5 in “cmake: determine list of extra built-ins dynamically”
  1. cmake: determine list of extra built-ins dynamicallyJohannes Schindelin via GitGitGadget, Dec 4, 2020
  2. Junio C HamanoDec 4, 2020
  3. Johannes SchindelinDec 4, 2020
  4. Jeff KingDec 4, 2020
  5. Johannes SchindelinDec 4, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.