← Back to team overview

dolfin team mailing list archive

Re: [noreply@xxxxxxxxxxxxx: [Branch ~dolfin-core/dolfin/main] Rev 4910: Add (initial) files for building DOLFIN with CMake.]

 

On Mon, Aug 09, 2010 at 09:51:24PM +0200, Johannes Ring wrote:
> On Mon, Aug 9, 2010 at 8:58 PM, Anders Logg <logg@xxxxxxxxx> wrote:
> > On Mon, Aug 09, 2010 at 08:05:59PM +0200, Johannes Ring wrote:
> >> On Mon, Aug 9, 2010 at 4:42 PM, Anders Logg <logg@xxxxxxxxx> wrote:
> >> > On Mon, Aug 09, 2010 at 04:39:44PM +0200, Johannes Ring wrote:
> >> >> On Mon, Aug 9, 2010 at 4:21 PM, Anders Logg <logg@xxxxxxxxx> wrote:
> >> >> > Nice. Is the naming scheme part of CMake? For example
> >> >> >
> >> >> >  cmake/DOLFINFindArmadillo.cmake
> >> >> >
> >> >> > Or would it be possible to name it
> >> >> >
> >> >> >  cmake/FindArmadillo.cmake ?
> >> >>
> >> >> Yes, no problem. CMake already has lots of Find<package>.cmake files
> >> >> like FindSWIG.cmake (see in /usr/share/cmake-2.8/Modules/ or similar).
> >> >> The reason for the DOLFIN prefix was to separate the CMake Find*.cmake
> >> >> files from the ones in DOLFIN, but this is surely not required.
> >> >
> >> > ok, I just found it a bit hard to read.
> >> >
> >> > Will the CMake Find<package> files be stored in the same directory as
> >> > our Find<package> files? If not, I suggest we rename then and drop
> >> > "DOLFIN".
> >>
> >> No, they won't be stored in the same directory. However, the problem
> >> is that sometimes we want to extend the Find<package> that comes with
> >> CMake, like I have done in cmake/DOLFINFindBoost.cmake. It is not a
> >> good idea to have the same name (FindBoost.cmake) for both since
> >> DOLFINFindBoost makes use of FindBoost. The way of adding the project
> >> name as prefix is just something I picked up from another CMake based
> >> project. Maybe there is a better way to deal with this?
> >
> > I see. Would it work to have
> >
> >  FindArmadillo.dolfin.cmake
> >
> > ?
>
> Yes, that looks better. I have fixed this now.
>
> Johannes

Nice.

--
Anders

Attachment: signature.asc
Description: Digital signature


References