[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where to place cmake files (Was: Help in cmake / itk issue needed)



Hello Andreas, 

On Mon, 2015-05-18 at 08:47 +0200, Andreas Tille wrote:
> 
> $ apt-file search /usr/share/cmake | wc -l
> 3583
> $ apt-file search /usr/lib/cmake | wc -l
> 1419

Well, when you look at the package count that provide cmake files, it
looks a bit different: 

apt-file search /usr/share/cmake | sed -e "s/:.*//"  | sort -u | wc -l 
15

apt-file search /usr/lib/cmake | sed -e "s/:.*//"  | sort -u | wc -l
48

However, the important thing, is that at least ITKConfig.cmake contains
some arch dependent lines, e.g: 

  set(ITK_FFTW_LIBDIR "/usr/lib/x86_64-linux-gnu")
 

> I was actually thinking about
> 
>    git://git.debian.org/git/debian-med/bamtools.git
> 
> which I did not yet uploaded since I'm unsure about the "hand-made"
> cmake file in debian/cmake itself, the choice of a subdirectory
> debian/cmake/bamtools and the actual content of the cmake file.

A look at the cmake source code indicates that both, "lib" and "share"
are in the default search path, so I would guess, that
"/usr/share/cmake" is okay as long as there are no arch specifics in the
file (as it seems to the case with bamtools).

Best 
Gert 




Reply to: