Skip to content

Commit 748c943

Browse files
authored
Merge pull request OSGeo#3712 from mwtoews/vcpkg-2023.04.15
CI: upgrade vcpkg tag used for AppVeyor; use --triplet option
2 parents fb505f4 + b1a83e5 commit 748c943

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ jobs:
4646
shell: cmd
4747
if: steps.cache.outputs.cache-hit != 'true'
4848
run: |
49-
vcpkg install sqlite3[core,tool]:${{ env.ARCH }}-windows
50-
vcpkg install tiff:${{ env.ARCH }}-windows
51-
vcpkg install curl:${{ env.ARCH }}-windows
49+
vcpkg install sqlite3[core,tool] tiff curl --triplet=${{ env.ARCH }}-windows
5250
5351
- name: Build
5452
shell: cmd

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ build_script:
3131
# The checkout of a precise sha1 for VS2015 is a workaround for https://github.com/microsoft/vcpkg/issues/11666
3232
- if not exist %VCPKG_INSTALLED%\bin (
3333
cd "%VCPKG_ROOT%" &
34-
git fetch --depth=1 origin 2022.04.12 &
34+
git fetch --depth=1 origin 2023.04.15 &
3535
(if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (git -c advice.detachedHead=false checkout FETCH_HEAD)) &
3636
.\bootstrap-vcpkg.bat -disableMetrics &
37-
vcpkg install curl sqlite3[core,tool] tiff &
37+
vcpkg install sqlite3[core,tool] tiff curl --triplet=%platform%-windows &
3838
cd %APPVEYOR_BUILD_FOLDER%
3939
)
4040
- dir %VCPKG_INSTALLED%\bin

docs/source/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ Install PROJ dependencies
405405

406406
::
407407

408-
vcpkg.exe install sqlite3[core,tool]:x86-windows tiff:x86-windows curl:x86-windows
409-
vcpkg.exe install sqlite3[core,tool]:x64-windows tiff:x64-windows curl:x64-windows
408+
vcpkg install sqlite3[core,tool] tiff curl --triplet=x86-windows
409+
vcpkg install sqlite3[core,tool] tiff curl --triplet=x64-windows
410410

411411
.. note:: The tiff and curl dependencies are only needed since PROJ 7.0
412412

src/4D_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ bool PJCoordOperation::isInstantiable() const {
325325
/**************************************************************************************/
326326
if (isInstantiableCached == INSTANTIABLE_STATUS_UNKNOWN)
327327
isInstantiableCached = proj_coordoperation_is_instantiable(pj->ctx, pj);
328-
return bool(isInstantiableCached);
328+
return (isInstantiableCached == 1);
329329
}
330330
//! @endcond
331331

src/iso19111/c_api.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9064,7 +9064,7 @@ PJ *proj_normalize_for_visualization(PJ_CONTEXT *ctx, const PJ *obj) {
90649064
std::swap(maxxDst, maxyDst);
90659065
}
90669066
}
9067-
ctx->forceOver = alt.pj->over;
9067+
ctx->forceOver = alt.pj->over != 0;
90689068
auto pjNormalized =
90699069
pj_obj_create(ctx, co->normalizeForVisualization());
90709070
pjNormalized->over = alt.pj->over;
@@ -9103,7 +9103,7 @@ PJ *proj_normalize_for_visualization(PJ_CONTEXT *ctx, const PJ *obj) {
91039103
return nullptr;
91049104
}
91059105
try {
9106-
ctx->forceOver = obj->over;
9106+
ctx->forceOver = obj->over != 0;
91079107
auto pjNormalized = pj_obj_create(ctx, co->normalizeForVisualization());
91089108
pjNormalized->over = obj->over;
91099109
ctx->forceOver = false;

0 commit comments

Comments
 (0)