[libkml] explicitly set C++ standard as it uses removed features (#30526)

* [libkml] explicitly set C++ standard as it uses features that were removed in C++17

* ./vcpkg x-add-version --all
This commit is contained in:
Russell Greene 2023-03-30 16:13:25 -05:00 committed by GitHub
parent 4ee9010c4f
commit 5dc2f378a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -28,6 +28,9 @@ vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCMAKE_POLICY_DEFAULT_CMP0022=NEW
# libkml uses std::unary_function that was deprecated in C++11 and removed in C++17
# compilers are starting to ship C++17 as the defualt so explicitly set C++11
-DCMAKE_CXX_STANDARD=11
)
vcpkg_cmake_install()

View File

@ -1,7 +1,7 @@
{
"name": "libkml",
"version": "1.3.0",
"port-version": 11,
"port-version": 12,
"description": "Reference implementation of OGC KML 2.2",
"homepage": "https://github.com/libkml/libkml",
"license": "BSD-3-Clause",

View File

@ -4106,7 +4106,7 @@
},
"libkml": {
"baseline": "1.3.0",
"port-version": 11
"port-version": 12
},
"liblas": {
"baseline": "1.8.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "84ea1bd884a5d5afee127b15e73ef5bb7ba638dc",
"version": "1.3.0",
"port-version": 12
},
{
"git-tree": "4969a3e81df3ef13b5e3f2f94e652311df8bbafe",
"version": "1.3.0",