@@ -17,24 +17,24 @@ jobs:
1717 os : [macos-latest, windows-latest, ubuntu-latest]
1818 compiler : [default, clang]
1919 enable-libusb : [ON, OFF]
20- system- libusb : [ON, OFF]
20+ libusb-system : [ON, OFF]
2121 include :
22- # Add MinGW builds on Windows with system- libusb forced OFF
22+ # Add MinGW builds on Windows with libusb-system forced OFF
2323 - os : windows-latest
2424 compiler : mingw
2525 enable-libusb : ON
26- system- libusb : OFF
26+ libusb-system : OFF
2727 - os : windows-latest
2828 compiler : mingw
2929 enable-libusb : OFF
30- system- libusb : OFF
30+ libusb-system : OFF
3131 exclude :
32- # system- libusb is only valid on macOS & Ubuntu
32+ # libusb-system is only valid on macOS & Ubuntu
3333 - os : windows-latest
34- system- libusb : ON
35- # Prevent meaningless combos where system- libusb ON but libusb disabled
34+ libusb-system : ON
35+ # Prevent meaningless combos where libusb-system ON but libusb disabled
3636 - enable-libusb : OFF
37- system- libusb : ON
37+ libusb-system : ON
3838
3939 steps :
4040 - uses : actions/checkout@v4
@@ -43,19 +43,19 @@ jobs:
4343
4444 # Install system libusb only when requested AND on supported OSes
4545 - name : Install libusb (macOS)
46- if : matrix.os == 'macos-latest' && matrix['system- libusb'] == 'ON'
46+ if : matrix.os == 'macos-latest' && matrix['libusb-system '] == 'ON'
4747 run : |
4848 brew install libusb
4949
5050 - name : Install libusb (Ubuntu)
51- if : matrix.os == 'ubuntu-latest' && matrix['system- libusb'] == 'ON'
51+ if : matrix.os == 'ubuntu-latest' && matrix['libusb-system '] == 'ON'
5252 run : |
5353 sudo apt-get update
5454 sudo apt-get install -y libusb-1.0-0-dev libusb-1.0-0
5555
5656 # --- Local libusb when SYSTEM_LIBUSB=OFF but libusb is enabled ---
5757 - name : Build & install local libusb (all OSes)
58- if : matrix['enable-libusb'] == 'ON' && matrix['system- libusb'] == 'OFF'
58+ if : matrix['enable-libusb'] == 'ON' && matrix['libusb-system '] == 'OFF'
5959 shell : bash
6060 run : |
6161 set -euxo pipefail
9292 -DXLINK_BUILD_EXAMPLES=ON
9393 -DXLINK_BUILD_TESTS=ON
9494 -DXLINK_ENABLE_LIBUSB=${{ matrix['enable-libusb'] }}
95- -DXLINK_SYSTEM_LIBUSB =${{ matrix['system- libusb'] }}
95+ -DXLINK_LIBUSB_SYSTEM =${{ matrix['libusb-system '] }}
9696 -D"usb-1.0_DIR=$USB1_DIR"
9797
9898 - name : configure (Debug) - MinGW
@@ -103,7 +103,7 @@ jobs:
103103 -DXLINK_BUILD_EXAMPLES=ON
104104 -DXLINK_BUILD_TESTS=ON
105105 -DXLINK_ENABLE_LIBUSB=${{ matrix['enable-libusb'] }}
106- -DXLINK_SYSTEM_LIBUSB =${{ matrix['system- libusb'] }}
106+ -DXLINK_LIBUSB_SYSTEM =${{ matrix['libusb-system '] }}
107107 -D"usb-1.0_DIR=$USB1_DIR"
108108 -G "MinGW Makefiles"
109109
@@ -122,7 +122,7 @@ jobs:
122122 -DXLINK_BUILD_EXAMPLES=ON
123123 -DXLINK_BUILD_TESTS=ON
124124 -DXLINK_ENABLE_LIBUSB=${{ matrix['enable-libusb'] }}
125- -DXLINK_SYSTEM_LIBUSB =${{ matrix['system- libusb'] }}
125+ -DXLINK_LIBUSB_SYSTEM =${{ matrix['libusb-system '] }}
126126 -D"usb-1.0_DIR=$USB1_DIR"
127127
128128 - name : build (Release)
0 commit comments