nixpkgs/pkgs/development/python-modules/zxing_cpp/use-nixpkgs-pybind11.patch
2022-12-02 03:22:52 +00:00

15 lines
684 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index eadfc045..b6f273a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,8 +20,7 @@ if (NOT hasParent)
# In development mode, when the whole zxing-cpp directory is checked out, build against head code.
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../core ZXing EXCLUDE_FROM_ALL)
- include(${CMAKE_CURRENT_SOURCE_DIR}/../../zxing.cmake)
- zxing_add_package(pybind11 pybind11 ${pybind11_git_repo} ${pybind11_git_rev})
+ find_package(pybind11 CONFIG)
else()
# we don't have access to the top-level cmake helpers -> simply fetch it unconditional
include(FetchContent)