From fbeda8d0180d4875d9415022db14c20c3083e89f Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Fri, 19 Sep 2025 03:19:43 +0100 Subject: [PATCH] Don't try to use --install option on CMake 3.10 (added in 3.15). --- .github/workflows/build.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b312385..3201f7d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,12 +101,17 @@ jobs: working-directory: ${{github.workspace}}/host/libhackrf/build run: | sudo cmake --install . --config Release - if: matrix.os != 'windows-latest' + if: matrix.os != 'windows-latest' && matrix.cmake != '3.10.0' + + - name: Install (libhackrf, CMake 3.10) + working-directory: ${{github.workspace}}/host/libhackrf/build + run: | + sudo cmake --build . --target install --config Release + if: matrix.os != 'windows-latest' && matrix.cmake == '3.10.0' - name: Install (libhackrf, Windows) working-directory: ${{github.workspace}}/host/libhackrf/build - run: | - cmake --install . --config Release --prefix=$env:GITHUB_WORKSPACE/install + run: cmake --install . --config Release --prefix=$env:GITHUB_WORKSPACE/install if: matrix.os == 'windows-latest' # Build hackrf-tools ONLY @@ -130,8 +135,15 @@ jobs: - name: Install (hackrf-tools) working-directory: ${{github.workspace}}/host/hackrf-tools/build - run: sudo cmake --install . --config Release - if: matrix.os != 'windows-latest' + run: | + sudo cmake --install . --config Release + if: matrix.os != 'windows-latest' && matrix.cmake != '3.10.0' + + - name: Install (hackrf-tools, CMake 3.10) + working-directory: ${{github.workspace}}/host/hackrf-tools/build + run: | + sudo cmake --build . --target install --config Release + if: matrix.os != 'windows-latest' && matrix.cmake == '3.10.0' - name: Install (hackrf-tools, Windows) working-directory: ${{github.workspace}}/host/hackrf-tools/build