Skip to content

Commit

Permalink
Check OMPL version (fixes #12).
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Koval committed Feb 22, 2016
1 parent e34a350 commit 0cd8c27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion aikido/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ find_package(Boost REQUIRED COMPONENTS filesystem)
find_package(DART REQUIRED COMPONENTS core)
find_package(OMPL REQUIRED)

if("${OMPL_VERSION}" VERSION_LESS "1.0.0")
message(SEND_ERROR
"Aikido requires OMPL 1.0.0 or greater; found ${OMPL_VERSION}.")
endif()

# Compilation setup
include_directories(
include
Expand Down Expand Up @@ -76,4 +81,4 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"

# Add unit tests using GTest.
enable_testing()
add_subdirectory(tests)
add_subdirectory(tests)
2 changes: 1 addition & 1 deletion aikido/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<depend>boost</depend>
<depend>dart</depend>
<depend>eigen</depend>
<depend>ompl</depend>
<depend version_gte="1.0.0">ompl</depend>
<depend>python</depend>
<!-- This is required by REP-136. -->
<exec_depend>catkin</exec_depend>
Expand Down

0 comments on commit 0cd8c27

Please sign in to comment.