Fixed ceres linker issue with floam dependency (if WITH_CERES is OFF)

This commit is contained in:
matlabbe
2022-09-27 23:35:13 +00:00
parent 74c6e9cfec
commit 87faea7a85
2 changed files with 14 additions and 10 deletions

View File

@@ -422,16 +422,16 @@ IF(cvsba_FOUND)
)
ENDIF(cvsba_FOUND)
IF(WITH_CERES AND CERES_FOUND)
SET(INCLUDE_DIRS
${INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
IF(CERES_FOUND)
SET(INCLUDE_DIRS
${INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
)
SET(LIBRARIES
${LIBRARIES}
${CERES_LIBRARIES}
${LIBRARIES}
${CERES_LIBRARIES}
)
ENDIF(WITH_CERES AND CERES_FOUND)
ENDIF(CERES_FOUND)
IF(libpointmatcher_FOUND)
SET(INCLUDE_DIRS