aboutsummaryrefslogtreecommitdiff
path: root/ports/zxing-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ports/zxing-cpp')
-rw-r--r--ports/zxing-cpp/0003-fix-dependency-bigint.patch5
-rw-r--r--ports/zxing-cpp/portfile.cmake8
2 files changed, 6 insertions, 7 deletions
diff --git a/ports/zxing-cpp/0003-fix-dependency-bigint.patch b/ports/zxing-cpp/0003-fix-dependency-bigint.patch
index 1601d3e39..eff577f44 100644
--- a/ports/zxing-cpp/0003-fix-dependency-bigint.patch
+++ b/ports/zxing-cpp/0003-fix-dependency-bigint.patch
@@ -2,15 +2,14 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54071bd..0edd0e9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -44,6 +44,12 @@ if(WIN32)
+@@ -44,6 +44,11 @@ if(WIN32)
set(CMAKE_DEBUG_POSTFIX -debug)
endif()
+# Bigint
+find_package(bigint CONFIG REQUIRED)
+
-+include_directories(${BIGINT_INCLUDE_DIRS})
-+link_libraries(${BIGINT_LIBRARIES})
++link_libraries(bigint::bigint)
+
# OpenCV classes
if(WITH_OPENCV)
diff --git a/ports/zxing-cpp/portfile.cmake b/ports/zxing-cpp/portfile.cmake
index f6fd43351..9211ef3c6 100644
--- a/ports/zxing-cpp/portfile.cmake
+++ b/ports/zxing-cpp/portfile.cmake
@@ -7,9 +7,9 @@ vcpkg_from_github(
SHA512 a079ad47171224de4469e76bf0779b6ebc9c6dfb3604bd5dbf5e6e5f321d9e6255f689daa749855f8400023602f1773214013c006442e9b32dd4b8146c888c02
HEAD_REF master
PATCHES
- 0001-opencv4-compat.patch
- 0002-improve-features.patch
- 0003-fix-dependency-bigint.patch
+ 0001-opencv4-compat.patch
+ 0002-improve-features.patch
+ 0003-fix-dependency-bigint.patch
)
file(REMOVE ${SOURCE_PATH}/cmake/FindModules/FindIconv.cmake)
@@ -25,7 +25,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
- OPTIONS ${FEATURE_OPTIONS}
+ OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_install_cmake()