Skip to content

Commit 5d8c81b

Browse files
committed
use CMAKE_INSTALL_PREFIX instead of --prefix
1 parent bfb491c commit 5d8c81b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/cmake.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Build
2222
run: |
2323
mkdir build
24-
cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON
24+
cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON -DCMAKE_INSTALL_PREFIX=tmp/install
2525
cmake --build build
2626
- name: Run Test
2727
run: ctest --test-dir build -V
@@ -36,15 +36,15 @@ jobs:
3636
- name: Test Consuming (Windows)
3737
if: runner.os = 'Windows'
3838
run: |
39-
cmake --install build --prefix tmp/install --config Debug
39+
cmake --install build --config Debug
4040
cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install
4141
cmake --build test/app/build
4242
$Env:PATH = "$PWD\tmp\install\bin;$Env:PATH"
4343
test/app/build/Debug/app.exe
4444
- name: Test Consuming (Unix)
4545
if: runner.os != 'Windows'
4646
run: |
47-
cmake --install build --prefix tmp/install
47+
cmake --install build
4848
cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install
4949
cmake --build test/app/build
5050
test/app/build/app
@@ -67,7 +67,7 @@ jobs:
6767
- name: Build
6868
run: |
6969
mkdir build
70-
cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON -G'MSYS Makefiles'
70+
cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON -G'MSYS Makefiles' -DCMAKE_INSTALL_PREFIX=tmp/install
7171
cmake --build build
7272
- name: Run Test
7373
run: ctest --test-dir build -V
@@ -79,7 +79,7 @@ jobs:
7979
path: build/libutf8proc.*
8080
- name: Test Consuming
8181
run: |
82-
cmake --install build --prefix tmp/install
82+
cmake --install build
8383
cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install -G'MSYS Makefiles'
8484
cmake --build test/app/build
8585
PATH="$(pwd)/tmp/install/bin:$PATH"

0 commit comments

Comments
 (0)