blob: 5b33d80eac0c10f3c48e9d768c6421db232e3d02 (
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 ba2c37f..bd7f268 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,7 +96,7 @@ option(PYBUILD "Build Python modules")
# 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})
|