Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar: overriding functions should not return a subclass
[simgrid.git] / CMakeLists.txt
index ba98962c94dfb0e341614281e0c3486fc1256984..fe961c192de988972ae4be5f71d7039c5a95e257 100644 (file)
@@ -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 (found version: ${pybind11_VERSION}).")
+        set(pybind11_FOUND OFF)
+      endif()
     endif()
 
     if(NOT PYTHONLIBS_FOUND)