summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-awkward/pybind11.patch
blob: 8edc76919fd55898ef7c787f83151df2216471ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fedfe3a..bf762c9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -107,7 +107,7 @@ addtest(test0074 tests/test_0074-argsort-and-sort-rawarray.cpp)
 
 # Third tier: Python modules.
 if (PYBUILD)
-  add_subdirectory(pybind11)
+  find_package(pybind11)
 
   file(GLOB LAYOUT_SOURCES "src/python/*.cpp")
   pybind11_add_module(_ext ${LAYOUT_SOURCES})