g2o
g2o copied to clipboard
g2oTargets.cmake has incorrect directories for solver and types
g2o/build/CMakeFiles/Export/lib/cmake/g2o/g2oTargets.cmake contains
set_target_properties(g2o::solver_eigen PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/g2o/solver_eigen;${_IMPORT_PREFIX}/include" INTERFACE_LINK_LIBRARIES "g2o::core" )
although installed directory contains /usr/local/include/g2o/solvers/eigen
Similar error for other solver_ directories
This prevents proper linking of other frameworks that use g2o , for example OpenVSLAM community CMake generation gives:
Imported target "g2o::solver_eigen" includes non-existent path
"/usr/local/include/g2o/solver_eigen"
Also: g2o/build/CMakeFiles/Export/lib/lib/cmake/g2o/g2oTargets.cmake contains
Create imported target g2o::types_sba add_library(g2o::types_sba SHARED IMPORTED)
set_target_properties(g2o::types_sba PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" INTERFACE_LINK_LIBRARIES "g2o::core;g2o::types_slam3d" )
while installed directory contains /usr/local/include/g2o/types/slam2d and others