From b637d66ab7e8a43bf7fa0b15367caebed9196ef5 Mon Sep 17 00:00:00 2001 From: Paul-Edouard Sarlin Date: Mon, 5 Feb 2024 22:16:52 +0100 Subject: [PATCH] Min ceres version --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08b93b3..3574a26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)