mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[gdal] fixed compilation issue with std::fabs (#6336)
This commit is contained in:
parent
5ae66b8074
commit
e2f45664c9
10
ports/gdal/0003-Fix-std-fabs.patch
Normal file
10
ports/gdal/0003-Fix-std-fabs.patch
Normal 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 $")
|
||||
|
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user