Ports/gpgme: Prefix CMakeConfig file with ${CMAKE_SYSROOT}

The automatically created CMakeConfig file was not working for
cross-compilation. We now prefix the path with `${CMAKE_SYSROOT}`
to have it work on host and target.
This commit is contained in:
Fabian Dellwing 2024-04-04 20:00:00 +02:00 committed by Tim Schumacher
parent 29521b50e6
commit 65fd70c890
Notes: sideshowbarker 2024-07-17 05:58:46 +09:00

View file

@ -18,3 +18,7 @@ configopts=(
"--with-libassuan-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
"--with-sysroot=${SERENITY_INSTALL_ROOT}"
)
post_install() {
run sed -i 's#/usr/local#${CMAKE_SYSROOT}/usr/local#g' ${SERENITY_INSTALL_ROOT}/usr/local/lib/cmake/Gpgmepp/GpgmeppConfig.cmake
}