mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
ubuntu 16.04: fixed cmake GREATER_EQUAL not defined
This commit is contained in:
@@ -297,7 +297,7 @@ IF(WITH_QT)
|
||||
ENDIF(NOT VTK_FOUND)
|
||||
|
||||
# If Qt is here, the GUI will be built
|
||||
IF("${VTK_MAJOR_VERSION}" GREATER_EQUAL 9)
|
||||
IF(NOT(${VTK_MAJOR_VERSION} LESS 9))
|
||||
MESSAGE(STATUS "VTK>=9 detected, will use VTK_QT_VERSION=${VTK_QT_VERSION} for Qt version.")
|
||||
IF(${VTK_QT_VERSION} EQUAL 6)
|
||||
FIND_PACKAGE(Qt6 COMPONENTS Widgets Core Gui OpenGL PrintSupport QUIET OPTIONAL_COMPONENTS Svg)
|
||||
@@ -329,7 +329,7 @@ IF(WITH_QT)
|
||||
IF(value EQUAL -1)
|
||||
list(FIND PCL_LIBRARIES vtkGUISupportQt value)
|
||||
IF(value EQUAL -1)
|
||||
IF("${VTK_MAJOR_VERSION}" GREATER_EQUAL 9)
|
||||
IF(NOT(${VTK_MAJOR_VERSION} LESS 9))
|
||||
SET(PCL_LIBRARIES "${PCL_LIBRARIES};VTK::GUISupportQt")
|
||||
ELSE()
|
||||
SET(PCL_LIBRARIES "${PCL_LIBRARIES};vtkGUISupportQt")
|
||||
|
||||
Reference in New Issue
Block a user