[gdal] fixed compilation issue with std::fabs (#6336)

This commit is contained in:
Daniele Lupo 2019-05-10 00:00:16 +02:00 committed by Phil Christensen
parent 5ae66b8074
commit e2f45664c9
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- a/ogrlinestring.cpp Fri Dec 14 22:34:20 2018
+++ b/ogrlinestring.cpp Wed Mar 27 11:00:00 2019
@@ -34,6 +34,7 @@
#include <cstdlib>
#include <algorithm>
#include <limits>
+#include <cmath>
CPL_CVSID("$Id: ogrlinestring.cpp 61153d33d7f055c3442ff728adbfa8e09582464b 2019-03-10 14:23:51 +0100 Even Rouault $")

View File

@ -1,5 +1,5 @@
Source: gdal
Version: 2.4.1-3
Version: 2.4.1-4
Description: The Geographic Data Abstraction Library for reading and writing geospatial raster and vector data.
Build-Depends: proj, libpng, geos, sqlite3, curl, expat, libpq, openjpeg, libwebp, libxml2, liblzma, netcdf-c, hdf5, zlib

View File

@ -47,6 +47,11 @@ foreach(BUILD_TYPE IN LISTS BUILD_TYPES)
${CMAKE_CURRENT_LIST_DIR}/0001-Fix-debug-crt-flags.patch
)
endif()
vcpkg_apply_patches(
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET}-${BUILD_TYPE}/gdal-${GDAL_VERSION_STR}/ogr
PATCHES
${CMAKE_CURRENT_LIST_DIR}/0003-Fix-std-fabs.patch
)
endforeach()