Skip to content

Commit

Permalink
Min ceres version
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe committed Feb 5, 2024
1 parent 278ea0f commit b637d66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if(NOT TARGET Ceres::ceres)
target_link_libraries(
Ceres::ceres INTERFACE ${CERES_LIBRARIES})
endif()
if(${CERES_VERSION} VERSION_LESS "2.1.0")
message( SEND_ERROR "Ceres version >= 2.1 required, found ${CERES_VERSION}." )
endif()

find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)

Expand Down

0 comments on commit b637d66

Please sign in to comment.