dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #19210
Re: Default installation of .cmake files
On Thu, Aug 19, 2010 at 04:41:10PM -0700, Johan Hake wrote:
> On Thursday August 19 2010 16:32:04 Anders Logg wrote:
> > On Thu, Aug 19, 2010 at 11:31:10PM +0100, Garth N. Wells wrote:
> > > On Thu, 2010-08-19 at 15:26 -0700, Johan Hake wrote:
> > > > On Thursday August 19 2010 15:17:51 Garth N. Wells wrote:
> > > > > On Thu, 2010-08-19 at 15:14 -0700, Johan Hake wrote:
> > > > > > On Thursday August 19 2010 15:08:43 Garth N. Wells wrote:
> > > > > > > On Thu, 2010-08-19 at 13:25 -0700, Johan Hake wrote:
> > > > > > > > Ok.
> > > > > > > >
> > > > > > > > It does not look like /usr/local/share/ufc is looked into. I
> > > > > > > > get this missleading error from dolfin cmake
> > > > > > > >
> > > > > > > > CMake Error at CMakeLists.txt:98 (find_package):
> > > > > > > > Could not find a configuration file for package UFC.dolfin.
> > > > > > >
> > > > > > > Oh, you need to change that line. It should be
> > > > > > >
> > > > > > > find_package(UFC REQUIRED)
> > > > > > >
> > > > > > > This will pick up the system-wide installation. The line
> > > > > > >
> > > > > > > find_package(UFC.dolfin REQUIRED)
> > > > > >
> > > > > > Ahh... I guess I learned some cmake today!
> > > > > >
> > > > > > Now it actually finds ufc. Even if this is nice, I think it would
> > > > > > be even nicer if one could tell cmake to look in another place
> > > > > > too. I never install stuff at /usr/local, but rather $HOME/local.
> > > > > >
> > > > > export UFC_DIR=$HOME/local/share/ufc/cmake
> > > > >
> > > > > should do it.
> > > >
> > > > But this I have to do for every package. With pkg-config I could just
> > > > add
> > > >
> > > > $HOME/local/lib/pkg-config
> > > >
> > > > to
> > > >
> > > > PKG_CONFIG_PATH
> > > >
> > > > and I was fine. I wonder if I could add something like:
> > > > CMAKE_CONFIG_PATH=$HOME/local/share
> > > >
> > > > ?
> >
> > If there is no CMake variable that does this, we could define our own
> > variable and set all FOO_DIR variables to that variable if they are
> > not set.
>
> I think this is exactly what Garth already has done.
Sounds good then, I haven't checked yet.
--
Anders
Attachment:
signature.asc
Description: Digital signature
References