ubuntu 16.04: fixed cmake GREATER_EQUAL not defined

This commit is contained in:
matlabbe
2023-03-05 17:46:01 -08:00
parent d6704ca2ed
commit 3a3a4ed745

View File

@@ -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")