[OE-core] [PATCH] cmake.bbclass: call cmake with a relative path

Burton, Ross ross.burton at intel.com
Mon Aug 22 16:08:31 UTC 2016


On 22 August 2016 at 15:27, Clemens Lang <clemens.lang at bmw-carit.de> wrote:

> CMake wants a relative path for CMAKE_INSTALL_*DIR, an absolute path
> breaks cross-compilation. This fact is documented in the following
> ticket: https://cmake.org/Bug/view.php?id=14367
>
> $sysconfdir and $localstatedir are not relative to $prefix, so they are
> still set as absolute paths. With his change ${PROJECT}Targets.cmake
> that are generated by cmakes "export" function will contain relative
> paths instead of absolute ones.
>

Seems to work in my testing, but this breaks piglit's bash-completion logic
again (resulting in it not installing the file).  If you understand cmake
then having a quick look at that would be much appreciated.  For reference
the buildhistory-diff log is:

packages/corei7-64-poky-linux/piglit/piglit-bash-completion: FILELIST:
removed all items "/usr/share/bash-completion/completions/piglit:

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160822/b7f89d85/attachment-0002.html>


More information about the Openembedded-core mailing list