mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-13 23:10:20 +08:00
Fixed warning with vtk 7.1. Dont add target "uninstall" if already added from some cmake dependencies
This commit is contained in:
+3
-1
@@ -204,7 +204,7 @@ option(WITH_REALSENSE2 "Include RealSense support" ON)
|
||||
option(WITH_MYNTEYE "Include mynteye-s support" ON)
|
||||
option(WITH_DEPTHAI "Include depthai-core support" OFF)
|
||||
option(WITH_OCTOMAP "Include OctoMap support" ON)
|
||||
option(WITH_GRIDMAP "Include GridMap support" OFF)
|
||||
option(WITH_GRIDMAP "Include GridMap support" ON)
|
||||
option(WITH_CPUTSDF "Include CPUTSDF support" OFF)
|
||||
option(WITH_OPENCHISEL "Include open_chisel support" OFF)
|
||||
option(WITH_ALICE_VISION "Include AliceVision support" OFF)
|
||||
@@ -1083,6 +1083,7 @@ ENDIF(BUILD_EXAMPLES)
|
||||
#######################
|
||||
# Uninstall target, for "make uninstall"
|
||||
#######################
|
||||
IF (NOT TARGET uninstall)
|
||||
CONFIGURE_FILE(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||||
@@ -1090,6 +1091,7 @@ CONFIGURE_FILE(
|
||||
|
||||
ADD_CUSTOM_TARGET(uninstall
|
||||
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
||||
ENDIF()
|
||||
|
||||
####
|
||||
# Global Export Target
|
||||
|
||||
@@ -1679,7 +1679,7 @@ bool CloudViewer::addElevationMap(
|
||||
color[j] = 255 * dcolor[j] / 1.0;
|
||||
}
|
||||
|
||||
#if VTK_MAJOR_VERSION > 7
|
||||
#if VTK_MAJOR_VERSION > 7 || (VTK_MAJOR_VERSION==7 && VTK_MINOR_VERSION >= 1)
|
||||
colors->InsertNextTypedTuple(color);
|
||||
#else
|
||||
colors->InsertNextTupleValue(color);
|
||||
|
||||
Reference in New Issue
Block a user