cmake_auto_align_paths.bbclass: rework
* search the whole build directorty
* change files in ${base_libdir} too
Changes became necessary by update of systemd to 232 (libudev.so -> /lib)and
should be compatible to elder envioronments (e.g morty).
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
CMAKE_ALIGN_FILES_FIND ??= "*Targets.cmake"
|
||||
|
||||
do_configure_append() {
|
||||
# remove absolute paths from exported cmake files
|
||||
for f in `find ${B}/CMakeFiles/Export -name '*.cmake'` ${CMAKE_ADD_ALIGN_FILES} ; do
|
||||
for f in `find ${B} -name '${CMAKE_ALIGN_FILES_FIND}'` ${CMAKE_ADD_ALIGN_FILES} ; do
|
||||
sed -i 's:${STAGING_INCDIR_NATIVE}:${includedir}:g' "$f"
|
||||
sed -i 's:${STAGING_INCDIR}:${includedir}:g' "$f"
|
||||
sed -i 's:${STAGING_LIBDIR_NATIVE}:${libdir}:g' "$f"
|
||||
sed -i 's:${STAGING_LIBDIR}:${libdir}:g' "$f"
|
||||
sed -i 's:${STAGING_BASELIBDIR_NATIVE}:${base_libdir}:g' "$f"
|
||||
sed -i 's:${STAGING_BASELIBDIR}:${base_libdir}:g' "$f"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user