Skip to content

Commit c042ca2

Browse files
committed
Im cooked chat
1 parent 3ea46ff commit c042ca2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,16 @@ jobs:
4242
4343
# Configure
4444
- name: Configure with CMake
45-
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
46-
45+
run: |
46+
if [[ "$RUNNER_OS" == "Linux" ]]; then
47+
cmake -B build -S $GITHUB_WORKSPACE \
48+
1-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
49+
-DOpenCV_DIR=/usr/lib/x86_64-linux-gnu/cmake/opencv4
50+
else
51+
cmake -B build -S $GITHUB_WORKSPACE \
52+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
53+
fi
54+
4755
# Build
4856
- name: Build
4957
run: cmake --build build --config ${{ matrix.build_type }} --parallel

0 commit comments

Comments
 (0)