GNU bug report logs - #18926
cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH

Previous Next

Package: guix;

Reported by: 宋文武 <iyzsong <at> gmail.com>

Date: Sun, 2 Nov 2014 16:58:01 UTC

Severity: normal

Done: Andreas Enge <andreas <at> enge.fr>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 18926 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas <at> enge.fr>
Cc: 宋文武 <iyzsong <at> gmail.com>, 18926 <at> debbugs.gnu.org
Subject: Re: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and
 CMAKE_PREFIX_PATH
Date: Sun, 01 Mar 2015 15:35:51 +0100
Andreas Enge <andreas <at> 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’.




This bug report was last modified 10 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.