Compare commits

...

1 Commits

Author SHA1 Message Date
matlabbe
4098f0683a g2o vcpkg latest issue 2024-12-24 16:42:26 -08:00
2 changed files with 16 additions and 0 deletions

View File

@@ -929,10 +929,22 @@ ENDIF()
IF(NOT G2O_FOUND)
SET(G2O "//")
SET(G2O_CPP_CONF "//")
SET(G2O_SRC_DIR "//")
ELSE()
IF(NOT G2O_CPP11)
SET(G2O_CPP_CONF "//")
ENDIF(NOT G2O_CPP11)
IF(NOT G2O_INCLUDE_DIRS)
get_target_property(G2O_INCLUDE_DIRS g2o::core INTERFACE_INCLUDE_DIRECTORIES)
ENDIF()
FIND_FILE(G2O_CONFIG_H g2o/config.h
PATHS ${G2O_INCLUDE_DIRS}
NO_DEFAULT_PATH)
FILE(READ ${G2O_CONFIG_H} TMPTXT)
STRING(FIND "${TMPTXT}" "G2O_SRC_DIR" matchres)
IF(${matchres} EQUAL -1)
SET(G2O_SRC_DIR "//")
ENDIF(${matchres} EQUAL -1)
ENDIF()
IF(NOT GTSAM_FOUND)
SET(GTSAM "//")

View File

@@ -41,6 +41,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@TORO@#define RTABMAP_TORO
@G2O@#define RTABMAP_G2O
@G2O_CPP_CONF@#define RTABMAP_G2O_CPP11 @G2O_CPP11@
// vcpkg removes G2O_SRC_DIR
@G2O_SRC_DIR@#ifndef G2O_SRC_DIR
@G2O_SRC_DIR@#define G2O_SRC_DIR
@G2O_SRC_DIR@#endif
@GTSAM@#define RTABMAP_GTSAM
@CERES@#define RTABMAP_CERES
@MRPT@#define RTABMAP_MRPT