Files
meta-kf5/classes/cmake_sysroot.bbclass
2023-08-24 17:38:22 +08:00

13 lines
582 B
Plaintext

# SPDX-FileCopyrightText: 2023 Justin Hammond <justin@dynam.ac>
#
# SPDX-License-Identifier: MIT
#The Cmake files include the sysroot directory to various library include files, delete the actual sysroot from the path.
do_install:prepend:class-target() {
if [ "0" -ne $(find . -name \*.cmake | grep '_usr\|Export' | wc -l) ]; then
echo sed -i 's#'${RECIPE_SYSROOT}/usr'#\$\{_IMPORT_PREFIX\}#g' $(find . -name "*.cmake" | grep '_usr\|Export' )
sed -i 's#'${RECIPE_SYSROOT}/usr'#\$\{_IMPORT_PREFIX\}#g' $(find . -name "*.cmake" | grep '_usr\|Export' )
fi
}