mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 00:04:11 +00:00
15 lines
684 B
Diff
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)
|