From d188d3f5e7ffe250e57e3d9b7d2dbe335df5a398 Mon Sep 17 00:00:00 2001 From: Dominique Hunziker Date: Thu, 22 Jun 2017 10:19:34 +0200 Subject: [PATCH] sophus: strip STAGING_DIR_TARGET prefix from cmake config file --- recipes-extended/sophus/sophus_0.9.1.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes-extended/sophus/sophus_0.9.1.bb b/recipes-extended/sophus/sophus_0.9.1.bb index ef5e50b..906ecf6 100644 --- a/recipes-extended/sophus/sophus_0.9.1.bb +++ b/recipes-extended/sophus/sophus_0.9.1.bb @@ -15,3 +15,9 @@ inherit cmake # CXXFLAGS are needed to compile eigen 3.3.1 headers properly CXXFLAGS += "-Wno-deprecated-declarations -Wno-misleading-indentation -Wno-int-in-bool-context -Wno-ignored-attributes" + +do_install_append() { + # remove sysroot library path from cmake config files + sed -i -e 's#${STAGING_DIR_TARGET}##g' \ + ${D}${datadir}/sophus/*.cmake +}