# SPDX-FileCopyrightText: 2023 Justin Hammond # # 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 }