Hi Gabriel,

Gabriel Wicki <[email protected]> writes:

> Hi there!
>
> I need help!  I am struggling with cmake-build-system, namely some
> recursive git fetches while packaging `naja-slang`¹.  The cmake
> naja-slang build desperately tries to pull the repo.  How can I make
> *it* understand that we package `fmt` already (in the correct version)
> and provide either the ready package or the source—whichever is needed
> by naja-slang?
>
> Any and all pointers are much appreciated, as always!  Start well into
> your weekends!

You can have a look at the jami package. It sets some
"-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS"; this works if the name
passed to find_package exactly matches the CMake config file for it.

You can also head to (info "(cmake) FetchContent") (Texinfo doc
installed with the `cmake` package) to read more about that
functionality.

-- 
Thanks,
Maxim

Reply via email to