From 8edbb21bb8cff0b63abba06ee5d3ce8c07f03116 Mon Sep 17 00:00:00 2001 From: Logrus Date: Thu, 18 Aug 2016 22:57:12 +0200 Subject: [PATCH] Skip mrpt_ekf_slam_3d if version of MRPT is lower than 1.5.0. --- mrpt_ekf_slam_3d/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mrpt_ekf_slam_3d/CMakeLists.txt b/mrpt_ekf_slam_3d/CMakeLists.txt index 4fd0890..62c2b24 100644 --- a/mrpt_ekf_slam_3d/CMakeLists.txt +++ b/mrpt_ekf_slam_3d/CMakeLists.txt @@ -50,3 +50,8 @@ add_executable(mrpt_ekf_slam_3d TARGET_LINK_LIBRARIES(mrpt_ekf_slam_3d ${MRPT_LIBS} ${catkin_LIBRARIES} ${Eigen_LIBRARIES} ) + +IF(${MRPT_VERSION} LESS 1.5.0) + MESSAGE(WARNING "Target mrpt_ekf_slam_3d will not be built. It requires MRPT version 1.5.0 or higher, but you have ${MRPT_VERSION}.") + set_target_properties(mrpt_ekf_slam_3d PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1) +endif()