ci: fix OpenCV include path for MinGW cross-compile
Some checks failed
Build Windows Release / Build Windows x64 Release on Linux (MinGW + Qt + OpenCV) (push) Failing after 1m47s

This commit is contained in:
luochen570
2026-05-31 02:19:45 +08:00
parent f20aa192d8
commit a77e3c3e7a

View File

@@ -59,7 +59,9 @@ jobs:
run: | run: |
cmake -S . -B build-windows -G Ninja \ cmake -S . -B build-windows -G Ninja \
-DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake \ -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake \
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
-DOpenCV_DIR=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/OpenCV \
-DOpenCV_INCLUDE_DIRS=/usr/x86_64-w64-mingw32/sys-root/mingw/include/opencv4
- name: Build - name: Build
run: cmake --build build-windows --config "$BUILD_TYPE" --parallel run: cmake --build build-windows --config "$BUILD_TYPE" --parallel