PKGBUILDs/community/opencc/fix-system-pybind11.patch
2021-03-19 23:08:44 +00:00

15 lines
378 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d4b6530..cfc02c7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -219,9 +219,7 @@ endif()
if (BUILD_PYTHON)
if(USE_SYSTEM_PYBIND11)
- include(pybind11Config)
- include(pybind11Common)
- include(pybind11Tools)
+ find_package(pybind11 CONFIG)
else()
add_subdirectory(deps/pybind11-2.5.0)
endif()