From 9128e2401a0d72ad3d4415a54faa635b2308e8ab Mon Sep 17 00:00:00 2001 From: lebronzhang Date: Mon, 11 Jul 2016 06:18:44 +0800 Subject: [PATCH] Solve compilation problem --- io/CMakeLists.txt | 4 ++-- io/src/real_sense_grabber.cpp | 2 +- visualization/tools/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/io/CMakeLists.txt b/io/CMakeLists.txt index 1004338d0eb..70e8c96ed61 100644 --- a/io/CMakeLists.txt +++ b/io/CMakeLists.txt @@ -159,7 +159,7 @@ if(build) src/real_sense/sdk/real_sense_grabber.cpp src/real_sense/sdk/real_sense_device_manager.cpp ) - else(WITH_LIBREALSENSE) + elseif(WITH_LIBREALSENSE) set(REALSENSE_GRABBER_INCLUDES include/pcl/io/real_sense_grabber.h ) @@ -367,7 +367,7 @@ if(build) if(WITH_RSSDK) target_link_libraries(${LIB_NAME} ${RSSDK_LIBRARIES}) - else(WITH_LIBREALSENSE) + elseif(WITH_LIBREALSENSE) target_link_libraries(${LIB_NAME} ${LIBREALSENSE_LIBRARIES}) endif() diff --git a/io/src/real_sense_grabber.cpp b/io/src/real_sense_grabber.cpp index e84bed8bc7c..440b2f94143 100644 --- a/io/src/real_sense_grabber.cpp +++ b/io/src/real_sense_grabber.cpp @@ -81,7 +81,7 @@ bool pcl::RealSenseGrabber::Mode::operator== (const pcl::RealSenseGrabber::Mode& m) const { return (this->fps == m.fps && - this->depth_width == m.depth_width && + this->depth_width == m.depth_width && this->depth_height == m.depth_height && this->color_width == m.color_width && this->color_height == m.color_height); diff --git a/visualization/tools/CMakeLists.txt b/visualization/tools/CMakeLists.txt index 7879279a1b4..272b8e0cd93 100644 --- a/visualization/tools/CMakeLists.txt +++ b/visualization/tools/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(WITH_RSSDK) PCL_ADD_EXECUTABLE_OPT_BUNDLE(pcl_real_sense_viewer ${SUBSYS_NAME} real_sense_viewer.cpp) target_link_libraries(pcl_real_sense_viewer pcl_common pcl_io pcl_visualization) -else(WITH_LIBREALSENSE) +elseif(WITH_LIBREALSENSE) PCL_ADD_EXECUTABLE_OPT_BUNDLE(pcl_real_sense_viewer ${SUBSYS_NAME} real_sense_viewer.cpp) target_link_libraries(pcl_real_sense_viewer pcl_common pcl_io pcl_visualization) endif()