fix(CI): correct cmake prefix path for appveyor build
This commit is contained in:
parent
618a350e0d
commit
04ed6d435c
4
.github/workflows/windows.yml
vendored
4
.github/workflows/windows.yml
vendored
|
@ -34,11 +34,11 @@ jobs:
|
||||||
set CMAKE_PREFIX_PATH=%PWD%/dependencies_bin
|
set CMAKE_PREFIX_PATH=%PWD%/dependencies_bin
|
||||||
mkdir dependencies_src
|
mkdir dependencies_src
|
||||||
:: ===== uchardet =====
|
:: ===== uchardet =====
|
||||||
echo "::group::build uchardet"
|
echo ::group::build uchardet
|
||||||
git clone -q https://gitlab.freedesktop.org/BLumia/uchardet.git --branch msvc dependencies_src/uchardet
|
git clone -q https://gitlab.freedesktop.org/BLumia/uchardet.git --branch msvc dependencies_src/uchardet
|
||||||
cmake .\dependencies_src\uchardet -Bbuild_dependencies/uchardet -DBUILD_BINARY=OFF -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
|
cmake .\dependencies_src\uchardet -Bbuild_dependencies/uchardet -DBUILD_BINARY=OFF -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
|
||||||
cmake --build build_dependencies/uchardet --config Release --target=install -j || goto :error
|
cmake --build build_dependencies/uchardet --config Release --target=install -j || goto :error
|
||||||
echo "::endgroup::"
|
echo ::endgroup::
|
||||||
:: ===== pkg-config =====
|
:: ===== pkg-config =====
|
||||||
choco install pkgconfiglite
|
choco install pkgconfiglite
|
||||||
set PKG_CONFIG_PATH=%PWD%/dependencies_bin/lib/pkgconfig
|
set PKG_CONFIG_PATH=%PWD%/dependencies_bin/lib/pkgconfig
|
||||||
|
|
|
@ -40,7 +40,7 @@ build_script:
|
||||||
# finally...
|
# finally...
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%CMAKE_INSTALL_ROOT% -DCMAKE_INSTALL_PREFIX='%cd%'
|
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%PACKAGE_INSTALL_ROOT% -DCMAKE_INSTALL_PREFIX='%cd%'
|
||||||
- cmake --build .
|
- cmake --build .
|
||||||
- cmake --build . --target install
|
- cmake --build . --target install
|
||||||
# fixme: I don't know how to NOT make the binary installed to the ./bin/ folder...
|
# fixme: I don't know how to NOT make the binary installed to the ./bin/ folder...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user