]> code.ossystems Code Review - openembedded-core.git/commit
cmake.bbclass: call cmake with a relative path
authorThomas Witt <Thomas.Witt@bmw.de>
Mon, 22 Aug 2016 14:27:11 +0000 (16:27 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Aug 2016 16:44:18 +0000 (17:44 +0100)
commitc03b32bd71dbe04f2f239556fea0b53215e403d7
treeb17807012a26fedaf31bfa337a19d89731f3f3c8
parent4b695379dcf378e8d77deaf7e558e8cbd314683c
cmake.bbclass: call cmake with a relative path

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.

Signed-off-by: Thomas Witt <Thomas.Witt@bmw.de>
Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/cmake.bbclass