Skip to content

Commit

Permalink
Skip mrpt_ekf_slam_3d if version of MRPT is lower than 1.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Logrus committed Aug 18, 2016
1 parent b573dc7 commit 8edbb21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mrpt_ekf_slam_3d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 8edbb21

Please sign in to comment.