Blob Blame History Raw
From 26f74e228ebd1840befa4122d4f36840104a2380 Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Sat, 7 Dec 2019 16:58:38 +0000
Subject: [PATCH] Use system pybind11

diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index bf4d5f0..0057102 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -1,19 +1,10 @@
 include(FindPythonModule) # required for find_python_module
 
-# Set up pybind11 as an external project.
-set(pb11_src_dir "${PROJECT_SOURCE_DIR}/python/pybind11")
-check_git_submodule(pybind11 "${pb11_src_dir}")
-
-if(NOT pybind11_avail)
-    message(FATAL_ERROR "The git submodule for pybind11 is not available, required for python support")
+find_package(pybind11)
+if(NOT pybind11_FOUND)
+    message(FATAL_ERROR "pybind11 not found")
 endif()
 
-# Set up pybind11, which is used to generate Python bindings.
-# Pybind11 has good cmake support, so just add the pybind11 directory,
-# instead of using find_package.
-set(PYBIND11_CPP_STANDARD -std=c++14)
-add_subdirectory(pybind11)
-
 set(pyarb_source
     cells.cpp
     config.cpp