[poky] [PULL][PATCH 1/1] cmake: remove version in directory structure
Burton, Ross
ross.burton at intel.com
Thu Nov 29 15:55:35 PST 2018
On Thu, 29 Nov 2018 at 23:52, Maxime Roussin-Bélanger
<maxime.roussinbelanger at gmail.com> wrote:
> Remove the number because I don't think it's worth
> supporting multiple version of cmake inside an embedded
> product.
>
> When using an SDK, using 2 different CMake is probably not a
> use case.
Whilst that's a hard point to argue with, what's the problem that's
being solved here?
> EXTRA_OECMAKE=" \
> - -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \
> + -DCMAKE_DOC_DIR=${docdir_stripped}/cmake \
> + -DCMAKE_DATA_DIR=share/cmake \
> -DCMAKE_USE_SYSTEM_LIBRARIES=1 \
> -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \
> -DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0 \
> @@ -46,8 +47,8 @@ do_install_append_class-nativesdk() {
>
> FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}"
>
> -FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION} ${datadir}/cmake ${datadir}/aclocal"
> -FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}"
> +FILES_${PN} += "${datadir}/cmake ${datadir}/aclocal"
> +FILES_${PN}-doc += "${docdir}/cmake"
> FILES_${PN}-dev = ""
If the distro has set $datadir to something other than the default
then -DCMAKE_DATA_DIR=share/cmake won't match FILES_${PN} +=
${datadir}/cmake, you need to do the same calculation that
docdir_stripped already does.
Ross
More information about the poky
mailing list