Files
meta-qt5-extra/classes/cmake_auto_align_paths.bbclass
Andreas Müller 31f95ec92d world: rework cmake sanity and sysroot alignment
This is a panic commit in the middle of development - have the feeling my host
dies...

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2016-08-31 21:26:54 +02:00

20 lines
628 B
Plaintext

# do_configure_append_class-cross does not work so hack
do_configure_prepend_class-native() {
no_cmake_auto_align_paths=true
}
do_configure_prepend_class-nativesdk() {
no_cmake_auto_align_paths=true
}
do_configure_append() {
# remove absolute paths from exported cmake files
for f in `find ${B}/CMakeFiles/Export -name '*.cmake'` ${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"
done
}