Commit b8a8062
committed
fix(item B): force PkgConfig_FOUND past OpenCV's UNIX/MINGW gate
ROOT CAUSE (definitive, from OpenCV 5.0.0 CMakeLists.txt:660): find_package(PkgConfig)
is gated behind if(UNIX OR MINGW). clang-cl targets windows-MSVC (neither) → it's
never called → PkgConfig_FOUND=false → detect_ffmpeg's pkg-config branch skipped →
FFMPEG:NO, regardless of pkg-config setup. Fix: CMAKE_PROJECT_OpenCV_INCLUDE runs a
force_pkgconfig.cmake right after project(OpenCV) that calls find_package(PkgConfig
REQUIRED), setting PkgConfig_FOUND before detection so the pkg-config branch runs.1 parent c6fd4df commit b8a8062
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| |||
0 commit comments