From 335d637b2178fa9781a6a941fd788350e93265b3 Mon Sep 17 00:00:00 2001 From: Paul Baksic Date: Tue, 27 Oct 2026 15:28:56 +0100 Subject: [PATCH] Use only major and minor version to enable patch compatibility --- SofaPython3Config.cmake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SofaPython3Config.cmake.in b/SofaPython3Config.cmake.in index 52669ce6a..a730a3ff4 100644 --- a/SofaPython3Config.cmake.in +++ b/SofaPython3Config.cmake.in @@ -45,9 +45,9 @@ if(NOT TARGET pybind11) endif() if(CMAKE_VERSION VERSION_LESS "3.24.0") - find_package(pybind11 @pybind11_VERSION@ QUIET REQUIRED CONFIG) + find_package(pybind11 @pybind11_VERSION_MAJOR@.@pybind11_VERSION_MINOR@ QUIET REQUIRED CONFIG) else() - find_package(pybind11 @pybind11_VERSION@ QUIET REQUIRED CONFIG GLOBAL) + find_package(pybind11 @pybind11_VERSION_MAJOR@.@pybind11_VERSION_MINOR@ QUIET REQUIRED CONFIG GLOBAL) endif() # Reset PYTHON_* vars