[poky] [PULL][PATCH 1/1] cmake: remove version in directory structure
Burton, Ross
ross.burton at intel.com
Fri Nov 30 02:29:31 PST 2018
On Fri, 30 Nov 2018 at 01:30, Maxime Roussin-Bélanger
<maxime.roussinbelanger at gmail.com> wrote:
> > Whilst that's a hard point to argue with, what's the problem that's
> > being solved here?
>
>
> If CMake is in the cmake-x.xx directory and then there is libeigen that
> adds their own cmake modules to the cmake/modules.
>
> So now you have the cmake modules inside cmake-x.xx/Modules and some in
> cmake/modules. Your project will have to update the CMAKE_MODULE_PATH,
> if they wanna use libeigen.
>
> Well, I think that's how it works. All of the recipes that want to add their own
> module they have to use `cmake/Modules`, because they can't possibly know
> which cmake version we are using.
>
> So I thought maybe put them all in the same directory so no one
> has to deal with the fact that 2 directories are used for the same thing.
>
> Less confusing?
The context is useful, thanks. Note that Debian does exactly the
same: cmake installs to /usr/lib/cmake-[version] and eigen installs to
/usr/lib/cmake/, and that works. Is this a problem in general builds
or just the SDK? Possibly our toolchain file is breaking the usual
lookup.
Ross
More information about the poky
mailing list