Skip to content

Commit 60f7551

Browse files
committed
fix: update CMake installation prefix for Windows and Unix systems
1 parent 442c94d commit 60f7551

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,23 @@ jobs:
6666

6767
- name: Configure CMake (Windows)
6868
if: runner.os == 'Windows'
69-
run: cmake -B build -G Ninja -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
69+
run: cmake -B build -G Ninja -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/"
7070

71-
- name: Configure CMake (Unix)
72-
if: runner.os != 'Windows'
71+
- name: Configure CMake (macOS)
72+
if: runner.os == 'macOS'
73+
run: |
74+
cmake -B build \
75+
-G Ninja \
76+
-DCMAKE_BUILD_TYPE=Release \
77+
-DCMAKE_INSTALL_PREFIX="/"
78+
79+
- name: Configure CMake (Linux)
80+
if: runner.os == 'Linux'
7381
run: |
7482
cmake -B build \
7583
-G Ninja \
7684
-DCMAKE_BUILD_TYPE=Release \
77-
-DCMAKE_INSTALL_PREFIX=/usr/local
85+
-DCMAKE_INSTALL_PREFIX=/usr
7886
7987
- name: Build
8088
run: cmake --build build --config Release

0 commit comments

Comments
 (0)