Fixed build with g2o binaries

This commit is contained in:
matlabbe
2023-03-22 20:49:08 -07:00
parent 85cc6fe3c7
commit d13f594d9c

View File

@@ -766,7 +766,7 @@ IF(WITH_ORB_SLAM AND NOT G2O_FOUND)
ENDIF(WITH_ORB_SLAM AND NOT G2O_FOUND)
IF(NOT MSVC)
IF(Qt6_FOUND OR (G2O_FOUND AND ${G2O_CPP11} EQUAL 1))
IF(Qt6_FOUND OR (G2O_FOUND AND G2O_CPP11 AND ${G2O_CPP11} EQUAL 1))
# Qt6 requires c++17
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)