X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8937f1426cc4c3bbe77178ce3a9cdc0687263a8e..a539cc1790aed8a1549a6cde5cdddc0876615851:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 02a0859d10..c8cbaee659 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -850,6 +850,9 @@ endif() # Python binding, generated with pybind11 set(PYBIND11_CPP_STANDARD -std=c++11) find_package(pybind11) +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)