about summary refs log tree commit diff
path: root/pkgs/development/python-modules/zxing_cpp/use-nixpkgs-pybind11.patch
blob: 4a4960f13d6d7cb9e03c4170787a2fe3aae5df51 (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 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)