Andreas Enge <andr...@enge.fr> skribis:

> What would be desirable is the following:
> In the definition of a search path, we need an additional transformation
> (if it is not already there). We need to look for the regular expression
>    (.+)/(lib|lib64|share)/.+\.cmake$
> or maybe
>    (.+)/(lib|lib/[^/]+|share)/.+\.cmake$
> and put
>    \1
> into CMAKE_PREFIX_PATH.

That’s not currently possible using the search path mechanism (and I
can’t imagine such weird semantics.)

I can imagine two solutions, in order of preference:

   1. Find CMAKE_ environment variables that can be set using the search
      path mechanism.  Many environment variables are documented, is
      there really none that we can use?

   2. Add custom code to cmake-build-system.scm instead of using the
      search path mechanism.

WDYT?

Thanks for taking the time to investigate!

Ludo’.



Reply via email to