sophus: strip STAGING_DIR_TARGET prefix from cmake config file

This commit is contained in:
Dominique Hunziker 2017-06-22 10:19:34 +02:00 committed by Lukas Bulwahn
parent 67214880a7
commit d188d3f5e7
1 changed files with 6 additions and 0 deletions

View File

@ -15,3 +15,9 @@ inherit cmake
# CXXFLAGS are needed to compile eigen 3.3.1 headers properly # 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" 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
}