[mongo-cxx-driver] set c++17 for std::experimental build (#24083)

* [mongo-cxx-driver] set c++17 for std::experimental build

fixes #21877

* update version

* update git-tree

* add license

* overwrite version

Co-authored-by: FrankXie <v-frankxie@microsoft.com>
This commit is contained in:
Roberto C. Sánchez 2022-04-15 16:29:29 -04:00 committed by GitHub
parent 72910aae4f
commit 94c2aed904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -2,6 +2,7 @@ set(VERSION_MAJOR 3)
set(VERSION_MINOR 6)
set(VERSION_PATCH 5)
set(VERSION_FULL ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
set(BSONCXX_STANDARD 11)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@ -29,6 +30,7 @@ elseif ("boost" IN_LIST FEATURES)
set(BSONCXX_POLY BOOST)
elseif("std-experimental" IN_LIST FEATURES)
set(BSONCXX_POLY STD_EXPERIMENTAL)
set(BSONCXX_STANDARD 17)
else()
if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(BSONCXX_POLY BOOST)
@ -43,6 +45,7 @@ vcpkg_cmake_configure(
-DMONGOCXX_HEADER_INSTALL_DIR=include
-DBSONCXX_HEADER_INSTALL_DIR=include
-DBSONCXX_POLY_USE_${BSONCXX_POLY}=1
-DCMAKE_CXX_STANDARD=${BSONCXX_STANDARD}
-DBUILD_VERSION=${VERSION_FULL}
)

View File

@ -1,9 +1,10 @@
{
"name": "mongo-cxx-driver",
"version": "3.6.5",
"port-version": 2,
"port-version": 3,
"description": "MongoDB C++ Driver.",
"homepage": "https://github.com/mongodb/mongo-cxx-driver",
"license": "Apache-2.0",
"dependencies": [
"boost-optional",
"boost-smart-ptr",

View File

@ -4578,7 +4578,7 @@
},
"mongo-cxx-driver": {
"baseline": "3.6.5",
"port-version": 2
"port-version": 3
},
"mongoose": {
"baseline": "7.5",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "732830e44f7d4c9c31025d6c77e7d40220abef38",
"version": "3.6.5",
"port-version": 3
},
{
"git-tree": "2c9183634ff53b6e76b201ad39abf63b5d26bc8a",
"version": "3.6.5",