fix(CI): correct cmake prefix path for appveyor build

This commit is contained in:
Gary Wang 2024-09-23 20:45:38 +08:00
parent 618a350e0d
commit 04ed6d435c
No known key found for this signature in database
GPG Key ID: 5D30A4F15EA78760
2 changed files with 3 additions and 3 deletions

View File

@ -34,11 +34,11 @@ jobs:
set CMAKE_PREFIX_PATH=%PWD%/dependencies_bin
mkdir dependencies_src
:: ===== uchardet =====
echo "::group::build uchardet"
echo ::group::build 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 --build build_dependencies/uchardet --config Release --target=install -j || goto :error
echo "::endgroup::"
echo ::endgroup::
:: ===== pkg-config =====
choco install pkgconfiglite
set PKG_CONFIG_PATH=%PWD%/dependencies_bin/lib/pkgconfig

View File

@ -40,7 +40,7 @@ build_script:
# finally...
- mkdir 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 . --target install
# fixme: I don't know how to NOT make the binary installed to the ./bin/ folder...