]> AND Public Git Repository - simgrid.git/blobdiff - CMakeLists.txt
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix out of tree builds
[simgrid.git] / CMakeLists.txt
index 02a0859d10a46b1fdef40321da861773c9e256e9..28657b23853b9e80ee0954e6f69a2ee29a35fe51 100644 (file)
@@ -849,7 +849,10 @@ endif()
 
 # Python binding, generated with pybind11
 set(PYBIND11_CPP_STANDARD -std=c++11)
-find_package(pybind11)
+find_package(pybind11 2.2.0)
+if(NOT PYTHONLIBS_FOUND)
+  set(pybind11_FOUND OFF)
+endif()
 option(enable_python "Whether the Python bindings are activated." ${pybind11_FOUND}) # ON by default if dependencies are met
 
 if(enable_python)