ci: add OpenCV include path via CMAKE_CXX_FLAGS
Some checks failed
Build Windows Release / Build Windows x64 Release on Linux (MinGW + Qt + OpenCV) (push) Failing after 2m12s
Some checks failed
Build Windows Release / Build Windows x64 Release on Linux (MinGW + Qt + OpenCV) (push) Failing after 2m12s
This commit is contained in:
@@ -60,8 +60,8 @@ jobs:
|
||||
cmake -S . -B build-windows -G Ninja \
|
||||
-DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake \
|
||||
-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
|
||||
-DCMAKE_CXX_FLAGS="-isystem /usr/x86_64-w64-mingw32/sys-root/mingw/include/opencv4" \
|
||||
-DOpenCV_DIR=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/OpenCV
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build-windows --config "$BUILD_TYPE" --parallel
|
||||
|
||||
Reference in New Issue
Block a user