diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/opencv2/0005-fix-config.patch | |
Diffstat (limited to 'vcpkg/ports/opencv2/0005-fix-config.patch')
| -rw-r--r-- | vcpkg/ports/opencv2/0005-fix-config.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/opencv2/0005-fix-config.patch b/vcpkg/ports/opencv2/0005-fix-config.patch new file mode 100644 index 0000000..e9449e5 --- /dev/null +++ b/vcpkg/ports/opencv2/0005-fix-config.patch @@ -0,0 +1,18 @@ +--- a/cmake/templates/OpenCVConfig.cmake.in ++++ b/cmake/templates/OpenCVConfig.cmake.in +@@ -97,7 +97,6 @@ set(OpenCV_USE_MANGLED_PATHS @OpenCV_USE_MANGLED_PATHS_CONFIGCMAKE@) + # Extract the directory where *this* file has been installed (determined at cmake run-time) + get_filename_component(OpenCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH CACHE) + +-if(NOT WIN32 OR ANDROID) + if(ANDROID) + set(OpenCV_INSTALL_PATH "${OpenCV_CONFIG_PATH}/../../..") + else() +@@ -109,7 +108,6 @@ if(NOT WIN32 OR ANDROID) + else() + get_filename_component(OpenCV_INSTALL_PATH "${OpenCV_INSTALL_PATH}" REALPATH) + endif() +-endif() + + # Presence of Android native camera wrappers + set(OpenCV_HAVE_ANDROID_CAMERA @HAVE_opencv_androidcamera@) |