From 5bc5bbc9cc243be27f54aa35c822430e8e57bc95 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 7 Jun 2019 10:20:56 +0200 Subject: [PATCH] we need a recent version of pybind11 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba98962c94..c91ed492ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -789,6 +789,10 @@ if((NOT DEFINED enable_python) OR enable_python) else() find_package(pybind11 CONFIG) + if (pybind11_VERSION VERSION_LESS 2.2) + message(STATUS "SimGrid needs at least v2.2 of pybind11. Disabling the Python bindings.") + set(pybind11_FOUND OFF) + endif() endif() if(NOT PYTHONLIBS_FOUND) -- 2.20.1