| Summary: | breaks build of software using cmake packages due to hardcoded paths | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Matthieu Gallien <matthieu_gallien> |
| Component: | configuration | Assignee: | Alexander Kanavin <alex.kanavin> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jku, sgw |
| Version: | 1.7 | ||
| Target Milestone: | 2.2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Matthieu Gallien
2014-11-16 22:16:54 UTC
Please have a look to this bug I reported some time ago against cmake for details about why hard coded paths may create problems (http://public.kitware.com/Bug/print_bug_page.php?bug_id=14041). Best regards I believe this has been fixed by following commit. Please reopen if this is not the case. commit 7afa09db2e10896c8da91f7d19a569b13e34a7b7 Author: Thomas Witt <Thomas.Witt@bmw.de> Date: Mon Aug 22 16:27:11 2016 +0200 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. (From OE-Core rev: c03b32bd71dbe04f2f239556fea0b53215e403d7) |