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/0009-pkgconfig-suffix.patch | |
Diffstat (limited to 'vcpkg/ports/opencv2/0009-pkgconfig-suffix.patch')
| -rw-r--r-- | vcpkg/ports/opencv2/0009-pkgconfig-suffix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/opencv2/0009-pkgconfig-suffix.patch b/vcpkg/ports/opencv2/0009-pkgconfig-suffix.patch new file mode 100644 index 0000000..3f0e45c --- /dev/null +++ b/vcpkg/ports/opencv2/0009-pkgconfig-suffix.patch @@ -0,0 +1,15 @@ +--- a/cmake/OpenCVGenPkgconfig.cmake ++++ b/cmake/OpenCVGenPkgconfig.cmake +@@ -54,6 +54,12 @@ foreach(CVLib ${OpenCV_LIB_COMPONENTS}) + set(libname "${CVLib}") + endif() + ++ string(TOUPPER "${CMAKE_BUILD_TYPE}" build_type) ++ get_target_property(libsuffix ${CVLib} ${build_type}_POSTFIX) ++ if(libsuffix) ++ string(APPEND libname "${libsuffix}") ++ endif() ++ + set(libpath "\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}") + list(APPEND OpenCV_LIB_COMPONENTS_ "-L${libpath}") + list(APPEND OpenCV_LIB_COMPONENTS_ "-l${libname}") |