From 07d9fd2be644794664eee70b9f8c9946433ff0e5 Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Fri, 26 Jun 2026 17:04:19 -0400 Subject: [PATCH 1/2] impl(generator): update emitted build files for c++17 --- generator/internal/scaffold_generator.cc | 18 ++++++++++-------- generator/internal/scaffold_generator_test.cc | 4 ++++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/generator/internal/scaffold_generator.cc b/generator/internal/scaffold_generator.cc index 18f9672969917..c070db6df79ca 100644 --- a/generator/internal/scaffold_generator.cc +++ b/generator/internal/scaffold_generator.cc @@ -1022,6 +1022,9 @@ void GenerateQuickstartCMake( cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-$library$-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_$library$ REQUIRED) # MSVC requires some additional code to select the correct runtime library @@ -1062,7 +1065,7 @@ void GenerateQuickstartMakefile( # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$$(CXX) BIN=. @@ -1147,14 +1150,13 @@ void GenerateQuickstartBazelrc( # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/generator/internal/scaffold_generator_test.cc b/generator/internal/scaffold_generator_test.cc index b953aaa7b71e1..c0cc82deb1f57 100644 --- a/generator/internal/scaffold_generator_test.cc +++ b/generator/internal/scaffold_generator_test.cc @@ -411,6 +411,7 @@ TEST_F(ScaffoldGenerator, QuickstartCMake) { EXPECT_THAT(actual, HasSubstr("2034")); EXPECT_THAT(actual, Not(HasSubstr("$copyright_year$"))); EXPECT_THAT(actual, Not(HasSubstr("$library_prefix$"))); + EXPECT_THAT(actual, HasSubstr("CMAKE_CXX_STANDARD 17")); } TEST_F(ScaffoldGenerator, QuickstartMakefile) { @@ -421,6 +422,7 @@ TEST_F(ScaffoldGenerator, QuickstartMakefile) { EXPECT_THAT(actual, HasSubstr("2034")); EXPECT_THAT(actual, Not(HasSubstr("$copyright_year$"))); EXPECT_THAT(actual, HasSubstr("\t$(CXXLD) ")); + EXPECT_THAT(actual, HasSubstr("CXXFLAGS=-std=c++17")); } TEST_F(ScaffoldGenerator, QuickstartWorkspace) { @@ -461,6 +463,8 @@ TEST_F(ScaffoldGenerator, QuickstartBazelrc) { auto const actual = std::move(os).str(); EXPECT_THAT(actual, HasSubstr("2034")); EXPECT_THAT(actual, Not(HasSubstr("$copyright_year$"))); + EXPECT_THAT(actual, HasSubstr("c++17")); + EXPECT_THAT(actual, Not(HasSubstr("c++14"))); } } // namespace From fe7573c5da1e57510dbd7e9a3a74f69ab13e5b64 Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Fri, 26 Jun 2026 17:04:27 -0400 Subject: [PATCH 2/2] update existing build files --- google/cloud/accessapproval/quickstart/.bazelrc | 7 +++---- .../cloud/accessapproval/quickstart/CMakeLists.txt | 3 +++ google/cloud/accessapproval/quickstart/Makefile | 2 +- .../cloud/accesscontextmanager/quickstart/.bazelrc | 7 +++---- .../accesscontextmanager/quickstart/CMakeLists.txt | 3 +++ .../cloud/accesscontextmanager/quickstart/Makefile | 2 +- .../cloud/advisorynotifications/quickstart/.bazelrc | 7 +++---- .../advisorynotifications/quickstart/CMakeLists.txt | 3 +++ .../cloud/advisorynotifications/quickstart/Makefile | 2 +- google/cloud/aiplatform/quickstart/.bazelrc | 7 +++---- google/cloud/aiplatform/quickstart/CMakeLists.txt | 3 +++ google/cloud/aiplatform/quickstart/Makefile | 2 +- google/cloud/alloydb/quickstart/.bazelrc | 7 +++---- google/cloud/alloydb/quickstart/CMakeLists.txt | 3 +++ google/cloud/alloydb/quickstart/Makefile | 2 +- google/cloud/apigateway/quickstart/.bazelrc | 7 +++---- google/cloud/apigateway/quickstart/CMakeLists.txt | 3 +++ google/cloud/apigateway/quickstart/Makefile | 2 +- google/cloud/apigeeconnect/quickstart/.bazelrc | 7 +++---- .../cloud/apigeeconnect/quickstart/CMakeLists.txt | 3 +++ google/cloud/apigeeconnect/quickstart/Makefile | 2 +- google/cloud/apikeys/quickstart/.bazelrc | 7 +++---- google/cloud/apikeys/quickstart/CMakeLists.txt | 3 +++ google/cloud/apikeys/quickstart/Makefile | 2 +- google/cloud/apiregistry/quickstart/.bazelrc | 13 ++++++------- google/cloud/apiregistry/quickstart/CMakeLists.txt | 3 +++ google/cloud/apiregistry/quickstart/Makefile | 2 +- google/cloud/appengine/quickstart/.bazelrc | 7 +++---- google/cloud/appengine/quickstart/CMakeLists.txt | 3 +++ google/cloud/appengine/quickstart/Makefile | 2 +- google/cloud/apphub/quickstart/.bazelrc | 7 +++---- google/cloud/apphub/quickstart/CMakeLists.txt | 3 +++ google/cloud/apphub/quickstart/Makefile | 2 +- google/cloud/artifactregistry/quickstart/.bazelrc | 7 +++---- .../artifactregistry/quickstart/CMakeLists.txt | 3 +++ google/cloud/artifactregistry/quickstart/Makefile | 2 +- google/cloud/asset/quickstart/.bazelrc | 7 +++---- google/cloud/asset/quickstart/CMakeLists.txt | 3 +++ google/cloud/asset/quickstart/Makefile | 2 +- google/cloud/assuredworkloads/quickstart/.bazelrc | 7 +++---- .../assuredworkloads/quickstart/CMakeLists.txt | 3 +++ google/cloud/assuredworkloads/quickstart/Makefile | 2 +- google/cloud/auditmanager/quickstart/.bazelrc | 13 ++++++------- google/cloud/auditmanager/quickstart/CMakeLists.txt | 3 +++ google/cloud/auditmanager/quickstart/Makefile | 2 +- google/cloud/automl/quickstart/.bazelrc | 7 +++---- google/cloud/automl/quickstart/CMakeLists.txt | 3 +++ google/cloud/automl/quickstart/Makefile | 2 +- google/cloud/backupdr/quickstart/.bazelrc | 7 +++---- google/cloud/backupdr/quickstart/CMakeLists.txt | 3 +++ google/cloud/backupdr/quickstart/Makefile | 2 +- google/cloud/baremetalsolution/quickstart/.bazelrc | 7 +++---- .../baremetalsolution/quickstart/CMakeLists.txt | 3 +++ google/cloud/baremetalsolution/quickstart/Makefile | 2 +- google/cloud/batch/quickstart/.bazelrc | 7 +++---- google/cloud/batch/quickstart/CMakeLists.txt | 3 +++ google/cloud/batch/quickstart/Makefile | 2 +- google/cloud/beyondcorp/quickstart/.bazelrc | 7 +++---- google/cloud/beyondcorp/quickstart/CMakeLists.txt | 3 +++ google/cloud/beyondcorp/quickstart/Makefile | 2 +- google/cloud/bigquery/quickstart/.bazelrc | 3 +++ google/cloud/bigquery/quickstart/CMakeLists.txt | 3 +++ google/cloud/bigquery/quickstart/Makefile | 2 +- google/cloud/bigquerycontrol/quickstart/.bazelrc | 7 +++---- .../cloud/bigquerycontrol/quickstart/CMakeLists.txt | 3 +++ google/cloud/bigquerycontrol/quickstart/Makefile | 2 +- google/cloud/bigtable/quickstart/.bazelrc | 3 +++ google/cloud/bigtable/quickstart/CMakeLists.txt | 3 +++ google/cloud/bigtable/quickstart/Makefile | 2 +- google/cloud/billing/quickstart/.bazelrc | 7 +++---- google/cloud/billing/quickstart/CMakeLists.txt | 3 +++ google/cloud/billing/quickstart/Makefile | 2 +- .../cloud/binaryauthorization/quickstart/.bazelrc | 7 +++---- .../binaryauthorization/quickstart/CMakeLists.txt | 3 +++ .../cloud/binaryauthorization/quickstart/Makefile | 2 +- google/cloud/certificatemanager/quickstart/.bazelrc | 7 +++---- .../certificatemanager/quickstart/CMakeLists.txt | 3 +++ google/cloud/certificatemanager/quickstart/Makefile | 2 +- google/cloud/ces/quickstart/.bazelrc | 13 ++++++------- google/cloud/ces/quickstart/CMakeLists.txt | 3 +++ google/cloud/ces/quickstart/Makefile | 2 +- google/cloud/channel/quickstart/.bazelrc | 7 +++---- google/cloud/channel/quickstart/CMakeLists.txt | 3 +++ google/cloud/channel/quickstart/Makefile | 2 +- google/cloud/chronicle/quickstart/.bazelrc | 13 ++++++------- google/cloud/chronicle/quickstart/CMakeLists.txt | 3 +++ google/cloud/chronicle/quickstart/Makefile | 2 +- google/cloud/cloudbuild/quickstart/.bazelrc | 7 +++---- google/cloud/cloudbuild/quickstart/CMakeLists.txt | 3 +++ google/cloud/cloudbuild/quickstart/Makefile | 2 +- .../cloud/cloudcontrolspartner/quickstart/.bazelrc | 7 +++---- .../cloudcontrolspartner/quickstart/CMakeLists.txt | 3 +++ .../cloud/cloudcontrolspartner/quickstart/Makefile | 2 +- google/cloud/cloudquotas/quickstart/.bazelrc | 7 +++---- google/cloud/cloudquotas/quickstart/CMakeLists.txt | 3 +++ google/cloud/cloudquotas/quickstart/Makefile | 2 +- .../cloudsecuritycompliance/quickstart/.bazelrc | 13 ++++++------- .../quickstart/CMakeLists.txt | 3 +++ .../cloudsecuritycompliance/quickstart/Makefile | 2 +- google/cloud/commerce/quickstart/.bazelrc | 7 +++---- google/cloud/commerce/quickstart/CMakeLists.txt | 3 +++ google/cloud/commerce/quickstart/Makefile | 2 +- google/cloud/composer/quickstart/.bazelrc | 7 +++---- google/cloud/composer/quickstart/CMakeLists.txt | 3 +++ google/cloud/composer/quickstart/Makefile | 2 +- google/cloud/compute/quickstart/.bazelrc | 7 +++---- google/cloud/compute/quickstart/CMakeLists.txt | 3 +++ google/cloud/compute/quickstart/Makefile | 2 +- .../cloud/confidentialcomputing/quickstart/.bazelrc | 7 +++---- .../confidentialcomputing/quickstart/CMakeLists.txt | 3 +++ .../cloud/confidentialcomputing/quickstart/Makefile | 2 +- google/cloud/config/quickstart/.bazelrc | 7 +++---- google/cloud/config/quickstart/CMakeLists.txt | 3 +++ google/cloud/config/quickstart/Makefile | 2 +- google/cloud/configdelivery/quickstart/.bazelrc | 13 ++++++------- .../cloud/configdelivery/quickstart/CMakeLists.txt | 3 +++ google/cloud/configdelivery/quickstart/Makefile | 2 +- google/cloud/connectors/quickstart/.bazelrc | 7 +++---- google/cloud/connectors/quickstart/CMakeLists.txt | 3 +++ google/cloud/connectors/quickstart/Makefile | 2 +- .../cloud/contactcenterinsights/quickstart/.bazelrc | 7 +++---- .../contactcenterinsights/quickstart/CMakeLists.txt | 3 +++ .../cloud/contactcenterinsights/quickstart/Makefile | 2 +- google/cloud/container/quickstart/.bazelrc | 7 +++---- google/cloud/container/quickstart/CMakeLists.txt | 3 +++ google/cloud/container/quickstart/Makefile | 2 +- google/cloud/containeranalysis/quickstart/.bazelrc | 7 +++---- .../containeranalysis/quickstart/CMakeLists.txt | 3 +++ google/cloud/containeranalysis/quickstart/Makefile | 2 +- google/cloud/contentwarehouse/quickstart/.bazelrc | 7 +++---- .../contentwarehouse/quickstart/CMakeLists.txt | 3 +++ google/cloud/contentwarehouse/quickstart/Makefile | 2 +- google/cloud/datacatalog/quickstart/.bazelrc | 7 +++---- google/cloud/datacatalog/quickstart/CMakeLists.txt | 3 +++ google/cloud/datacatalog/quickstart/Makefile | 2 +- google/cloud/dataform/quickstart/.bazelrc | 13 ++++++------- google/cloud/dataform/quickstart/CMakeLists.txt | 3 +++ google/cloud/dataform/quickstart/Makefile | 2 +- google/cloud/datafusion/quickstart/.bazelrc | 7 +++---- google/cloud/datafusion/quickstart/CMakeLists.txt | 3 +++ google/cloud/datafusion/quickstart/Makefile | 2 +- google/cloud/datamigration/quickstart/.bazelrc | 7 +++---- .../cloud/datamigration/quickstart/CMakeLists.txt | 3 +++ google/cloud/datamigration/quickstart/Makefile | 2 +- google/cloud/dataplex/quickstart/.bazelrc | 7 +++---- google/cloud/dataplex/quickstart/CMakeLists.txt | 3 +++ google/cloud/dataplex/quickstart/Makefile | 2 +- google/cloud/dataproc/quickstart/.bazelrc | 7 +++---- google/cloud/dataproc/quickstart/CMakeLists.txt | 3 +++ google/cloud/dataproc/quickstart/Makefile | 2 +- google/cloud/datastore/quickstart/.bazelrc | 7 +++---- google/cloud/datastore/quickstart/CMakeLists.txt | 3 +++ google/cloud/datastore/quickstart/Makefile | 2 +- google/cloud/datastream/quickstart/.bazelrc | 7 +++---- google/cloud/datastream/quickstart/CMakeLists.txt | 3 +++ google/cloud/datastream/quickstart/Makefile | 2 +- google/cloud/deploy/quickstart/.bazelrc | 7 +++---- google/cloud/deploy/quickstart/CMakeLists.txt | 3 +++ google/cloud/deploy/quickstart/Makefile | 2 +- google/cloud/developerconnect/quickstart/.bazelrc | 7 +++---- .../developerconnect/quickstart/CMakeLists.txt | 3 +++ google/cloud/developerconnect/quickstart/Makefile | 2 +- google/cloud/devicestreaming/quickstart/.bazelrc | 13 ++++++------- .../cloud/devicestreaming/quickstart/CMakeLists.txt | 3 +++ google/cloud/devicestreaming/quickstart/Makefile | 2 +- google/cloud/dialogflow_cx/quickstart/.bazelrc | 7 +++---- .../cloud/dialogflow_cx/quickstart/CMakeLists.txt | 3 +++ google/cloud/dialogflow_cx/quickstart/Makefile | 2 +- google/cloud/dialogflow_es/quickstart/.bazelrc | 7 +++---- .../cloud/dialogflow_es/quickstart/CMakeLists.txt | 3 +++ google/cloud/dialogflow_es/quickstart/Makefile | 2 +- google/cloud/discoveryengine/quickstart/.bazelrc | 7 +++---- .../cloud/discoveryengine/quickstart/CMakeLists.txt | 3 +++ google/cloud/discoveryengine/quickstart/Makefile | 2 +- google/cloud/dlp/quickstart/.bazelrc | 7 +++---- google/cloud/dlp/quickstart/CMakeLists.txt | 3 +++ google/cloud/dlp/quickstart/Makefile | 2 +- google/cloud/documentai/quickstart/.bazelrc | 7 +++---- google/cloud/documentai/quickstart/CMakeLists.txt | 3 +++ google/cloud/documentai/quickstart/Makefile | 2 +- google/cloud/domains/quickstart/.bazelrc | 7 +++---- google/cloud/domains/quickstart/CMakeLists.txt | 3 +++ google/cloud/domains/quickstart/Makefile | 2 +- google/cloud/edgecontainer/quickstart/.bazelrc | 7 +++---- .../cloud/edgecontainer/quickstart/CMakeLists.txt | 3 +++ google/cloud/edgecontainer/quickstart/Makefile | 2 +- google/cloud/edgenetwork/quickstart/.bazelrc | 7 +++---- google/cloud/edgenetwork/quickstart/CMakeLists.txt | 3 +++ google/cloud/edgenetwork/quickstart/Makefile | 2 +- google/cloud/essentialcontacts/quickstart/.bazelrc | 7 +++---- .../essentialcontacts/quickstart/CMakeLists.txt | 3 +++ google/cloud/essentialcontacts/quickstart/Makefile | 2 +- google/cloud/eventarc/quickstart/.bazelrc | 7 +++---- google/cloud/eventarc/quickstart/CMakeLists.txt | 3 +++ google/cloud/eventarc/quickstart/Makefile | 2 +- google/cloud/filestore/quickstart/.bazelrc | 7 +++---- google/cloud/filestore/quickstart/CMakeLists.txt | 3 +++ google/cloud/filestore/quickstart/Makefile | 2 +- google/cloud/financialservices/quickstart/.bazelrc | 13 ++++++------- .../financialservices/quickstart/CMakeLists.txt | 3 +++ google/cloud/financialservices/quickstart/Makefile | 2 +- google/cloud/functions/quickstart/.bazelrc | 7 +++---- google/cloud/functions/quickstart/CMakeLists.txt | 3 +++ google/cloud/functions/quickstart/Makefile | 2 +- .../cloud/geminidataanalytics/quickstart/.bazelrc | 13 ++++++------- .../geminidataanalytics/quickstart/CMakeLists.txt | 3 +++ .../cloud/geminidataanalytics/quickstart/Makefile | 2 +- google/cloud/gkebackup/quickstart/.bazelrc | 7 +++---- google/cloud/gkebackup/quickstart/CMakeLists.txt | 3 +++ google/cloud/gkebackup/quickstart/Makefile | 2 +- google/cloud/gkeconnect/quickstart/.bazelrc | 7 +++---- google/cloud/gkeconnect/quickstart/CMakeLists.txt | 3 +++ google/cloud/gkeconnect/quickstart/Makefile | 2 +- google/cloud/gkehub/quickstart/.bazelrc | 7 +++---- google/cloud/gkehub/quickstart/CMakeLists.txt | 3 +++ google/cloud/gkehub/quickstart/Makefile | 2 +- google/cloud/gkemulticloud/quickstart/.bazelrc | 7 +++---- .../cloud/gkemulticloud/quickstart/CMakeLists.txt | 3 +++ google/cloud/gkemulticloud/quickstart/Makefile | 2 +- google/cloud/gkerecommender/quickstart/.bazelrc | 13 ++++++------- .../cloud/gkerecommender/quickstart/CMakeLists.txt | 3 +++ google/cloud/gkerecommender/quickstart/Makefile | 2 +- .../cloud/hypercomputecluster/quickstart/.bazelrc | 13 ++++++------- .../hypercomputecluster/quickstart/CMakeLists.txt | 3 +++ .../cloud/hypercomputecluster/quickstart/Makefile | 2 +- google/cloud/iam/quickstart/.bazelrc | 3 +++ google/cloud/iam/quickstart/CMakeLists.txt | 3 +++ google/cloud/iam/quickstart/Makefile | 2 +- google/cloud/iap/quickstart/.bazelrc | 7 +++---- google/cloud/iap/quickstart/CMakeLists.txt | 3 +++ google/cloud/iap/quickstart/Makefile | 2 +- google/cloud/ids/quickstart/.bazelrc | 7 +++---- google/cloud/ids/quickstart/CMakeLists.txt | 3 +++ google/cloud/ids/quickstart/Makefile | 2 +- google/cloud/kms/quickstart/.bazelrc | 7 +++---- google/cloud/kms/quickstart/CMakeLists.txt | 3 +++ google/cloud/kms/quickstart/Makefile | 2 +- google/cloud/language/quickstart/.bazelrc | 7 +++---- google/cloud/language/quickstart/CMakeLists.txt | 3 +++ google/cloud/language/quickstart/Makefile | 2 +- google/cloud/licensemanager/quickstart/.bazelrc | 13 ++++++------- .../cloud/licensemanager/quickstart/CMakeLists.txt | 3 +++ google/cloud/licensemanager/quickstart/Makefile | 2 +- google/cloud/logging/quickstart/.bazelrc | 7 +++---- google/cloud/logging/quickstart/CMakeLists.txt | 3 +++ google/cloud/logging/quickstart/Makefile | 2 +- google/cloud/lustre/quickstart/.bazelrc | 13 ++++++------- google/cloud/lustre/quickstart/CMakeLists.txt | 3 +++ google/cloud/lustre/quickstart/Makefile | 2 +- google/cloud/maintenance/quickstart/.bazelrc | 13 ++++++------- google/cloud/maintenance/quickstart/CMakeLists.txt | 3 +++ google/cloud/maintenance/quickstart/Makefile | 2 +- google/cloud/managedidentities/quickstart/.bazelrc | 7 +++---- .../managedidentities/quickstart/CMakeLists.txt | 3 +++ google/cloud/managedidentities/quickstart/Makefile | 2 +- google/cloud/managedkafka/quickstart/.bazelrc | 7 +++---- google/cloud/managedkafka/quickstart/CMakeLists.txt | 3 +++ google/cloud/managedkafka/quickstart/Makefile | 2 +- google/cloud/memcache/quickstart/.bazelrc | 7 +++---- google/cloud/memcache/quickstart/CMakeLists.txt | 3 +++ google/cloud/memcache/quickstart/Makefile | 2 +- google/cloud/memorystore/quickstart/.bazelrc | 13 ++++++------- google/cloud/memorystore/quickstart/CMakeLists.txt | 3 +++ google/cloud/memorystore/quickstart/Makefile | 2 +- google/cloud/metastore/quickstart/.bazelrc | 7 +++---- google/cloud/metastore/quickstart/CMakeLists.txt | 3 +++ google/cloud/metastore/quickstart/Makefile | 2 +- google/cloud/migrationcenter/quickstart/.bazelrc | 7 +++---- .../cloud/migrationcenter/quickstart/CMakeLists.txt | 3 +++ google/cloud/migrationcenter/quickstart/Makefile | 2 +- google/cloud/monitoring/quickstart/.bazelrc | 7 +++---- google/cloud/monitoring/quickstart/CMakeLists.txt | 3 +++ google/cloud/monitoring/quickstart/Makefile | 2 +- google/cloud/netapp/quickstart/.bazelrc | 7 +++---- google/cloud/netapp/quickstart/CMakeLists.txt | 3 +++ google/cloud/netapp/quickstart/Makefile | 2 +- .../cloud/networkconnectivity/quickstart/.bazelrc | 7 +++---- .../networkconnectivity/quickstart/CMakeLists.txt | 3 +++ .../cloud/networkconnectivity/quickstart/Makefile | 2 +- google/cloud/networkmanagement/quickstart/.bazelrc | 7 +++---- .../networkmanagement/quickstart/CMakeLists.txt | 3 +++ google/cloud/networkmanagement/quickstart/Makefile | 2 +- google/cloud/networksecurity/quickstart/.bazelrc | 7 +++---- .../cloud/networksecurity/quickstart/CMakeLists.txt | 3 +++ google/cloud/networksecurity/quickstart/Makefile | 2 +- google/cloud/networkservices/quickstart/.bazelrc | 7 +++---- .../cloud/networkservices/quickstart/CMakeLists.txt | 3 +++ google/cloud/networkservices/quickstart/Makefile | 2 +- google/cloud/notebooks/quickstart/.bazelrc | 7 +++---- google/cloud/notebooks/quickstart/CMakeLists.txt | 3 +++ google/cloud/notebooks/quickstart/Makefile | 2 +- google/cloud/oauth2/quickstart/CMakeLists.txt | 3 +++ google/cloud/oauth2/quickstart/Makefile | 2 +- google/cloud/opentelemetry/quickstart/.bazelrc | 4 +++- .../cloud/opentelemetry/quickstart/CMakeLists.txt | 3 +++ google/cloud/opentelemetry/quickstart/Makefile | 2 +- google/cloud/optimization/quickstart/.bazelrc | 7 +++---- google/cloud/optimization/quickstart/CMakeLists.txt | 3 +++ google/cloud/optimization/quickstart/Makefile | 2 +- google/cloud/oracledatabase/quickstart/.bazelrc | 13 ++++++------- .../cloud/oracledatabase/quickstart/CMakeLists.txt | 3 +++ google/cloud/oracledatabase/quickstart/Makefile | 2 +- google/cloud/orgpolicy/quickstart/.bazelrc | 7 +++---- google/cloud/orgpolicy/quickstart/CMakeLists.txt | 3 +++ google/cloud/orgpolicy/quickstart/Makefile | 2 +- google/cloud/osconfig/quickstart/.bazelrc | 7 +++---- google/cloud/osconfig/quickstart/CMakeLists.txt | 3 +++ google/cloud/osconfig/quickstart/Makefile | 2 +- google/cloud/oslogin/quickstart/.bazelrc | 7 +++---- google/cloud/oslogin/quickstart/CMakeLists.txt | 3 +++ google/cloud/oslogin/quickstart/Makefile | 2 +- google/cloud/parallelstore/quickstart/.bazelrc | 7 +++---- .../cloud/parallelstore/quickstart/CMakeLists.txt | 3 +++ google/cloud/parallelstore/quickstart/Makefile | 2 +- google/cloud/parametermanager/quickstart/.bazelrc | 7 +++---- .../parametermanager/quickstart/CMakeLists.txt | 3 +++ google/cloud/parametermanager/quickstart/Makefile | 2 +- google/cloud/policysimulator/quickstart/.bazelrc | 7 +++---- .../cloud/policysimulator/quickstart/CMakeLists.txt | 3 +++ google/cloud/policysimulator/quickstart/Makefile | 2 +- .../cloud/policytroubleshooter/quickstart/.bazelrc | 7 +++---- .../policytroubleshooter/quickstart/CMakeLists.txt | 3 +++ .../cloud/policytroubleshooter/quickstart/Makefile | 2 +- google/cloud/privateca/quickstart/.bazelrc | 7 +++---- google/cloud/privateca/quickstart/CMakeLists.txt | 3 +++ google/cloud/privateca/quickstart/Makefile | 2 +- .../privilegedaccessmanager/quickstart/.bazelrc | 7 +++---- .../quickstart/CMakeLists.txt | 3 +++ .../privilegedaccessmanager/quickstart/Makefile | 2 +- google/cloud/profiler/quickstart/.bazelrc | 7 +++---- google/cloud/profiler/quickstart/CMakeLists.txt | 3 +++ google/cloud/profiler/quickstart/Makefile | 2 +- google/cloud/publicca/quickstart/.bazelrc | 7 +++---- google/cloud/publicca/quickstart/CMakeLists.txt | 3 +++ google/cloud/publicca/quickstart/Makefile | 2 +- google/cloud/pubsub/quickstart/.bazelrc | 3 +++ google/cloud/pubsub/quickstart/CMakeLists.txt | 3 +++ google/cloud/pubsub/quickstart/Makefile | 2 +- google/cloud/pubsublite/quickstart/.bazelrc | 7 +++---- google/cloud/pubsublite/quickstart/CMakeLists.txt | 3 +++ google/cloud/pubsublite/quickstart/Makefile | 2 +- .../rapidmigrationassessment/quickstart/.bazelrc | 7 +++---- .../quickstart/CMakeLists.txt | 3 +++ .../rapidmigrationassessment/quickstart/Makefile | 2 +- .../cloud/recaptchaenterprise/quickstart/.bazelrc | 7 +++---- .../recaptchaenterprise/quickstart/CMakeLists.txt | 3 +++ .../cloud/recaptchaenterprise/quickstart/Makefile | 2 +- google/cloud/recommender/quickstart/.bazelrc | 7 +++---- google/cloud/recommender/quickstart/CMakeLists.txt | 3 +++ google/cloud/recommender/quickstart/Makefile | 2 +- google/cloud/redis/quickstart/.bazelrc | 7 +++---- google/cloud/redis/quickstart/CMakeLists.txt | 3 +++ google/cloud/redis/quickstart/Makefile | 2 +- google/cloud/resourcemanager/quickstart/.bazelrc | 7 +++---- .../cloud/resourcemanager/quickstart/CMakeLists.txt | 3 +++ google/cloud/resourcemanager/quickstart/Makefile | 2 +- google/cloud/retail/quickstart/.bazelrc | 7 +++---- google/cloud/retail/quickstart/CMakeLists.txt | 3 +++ google/cloud/retail/quickstart/Makefile | 2 +- google/cloud/run/quickstart/.bazelrc | 7 +++---- google/cloud/run/quickstart/CMakeLists.txt | 3 +++ google/cloud/run/quickstart/Makefile | 2 +- google/cloud/scheduler/quickstart/.bazelrc | 7 +++---- google/cloud/scheduler/quickstart/CMakeLists.txt | 3 +++ google/cloud/scheduler/quickstart/Makefile | 2 +- google/cloud/secretmanager/quickstart/.bazelrc | 7 +++---- .../cloud/secretmanager/quickstart/CMakeLists.txt | 3 +++ google/cloud/secretmanager/quickstart/Makefile | 2 +- .../cloud/securesourcemanager/quickstart/.bazelrc | 7 +++---- .../securesourcemanager/quickstart/CMakeLists.txt | 3 +++ .../cloud/securesourcemanager/quickstart/Makefile | 2 +- google/cloud/securitycenter/quickstart/.bazelrc | 7 +++---- .../cloud/securitycenter/quickstart/CMakeLists.txt | 3 +++ google/cloud/securitycenter/quickstart/Makefile | 2 +- .../securitycentermanagement/quickstart/.bazelrc | 7 +++---- .../quickstart/CMakeLists.txt | 3 +++ .../securitycentermanagement/quickstart/Makefile | 2 +- google/cloud/servicecontrol/quickstart/.bazelrc | 7 +++---- .../cloud/servicecontrol/quickstart/CMakeLists.txt | 3 +++ google/cloud/servicecontrol/quickstart/Makefile | 2 +- google/cloud/servicedirectory/quickstart/.bazelrc | 7 +++---- .../servicedirectory/quickstart/CMakeLists.txt | 3 +++ google/cloud/servicedirectory/quickstart/Makefile | 2 +- google/cloud/servicehealth/quickstart/.bazelrc | 7 +++---- .../cloud/servicehealth/quickstart/CMakeLists.txt | 3 +++ google/cloud/servicehealth/quickstart/Makefile | 2 +- google/cloud/servicemanagement/quickstart/.bazelrc | 7 +++---- .../servicemanagement/quickstart/CMakeLists.txt | 3 +++ google/cloud/servicemanagement/quickstart/Makefile | 2 +- google/cloud/serviceusage/quickstart/.bazelrc | 7 +++---- google/cloud/serviceusage/quickstart/CMakeLists.txt | 3 +++ google/cloud/serviceusage/quickstart/Makefile | 2 +- google/cloud/shell/quickstart/.bazelrc | 7 +++---- google/cloud/shell/quickstart/CMakeLists.txt | 3 +++ google/cloud/shell/quickstart/Makefile | 2 +- google/cloud/spanner/quickstart/.bazelrc | 3 +++ google/cloud/spanner/quickstart/CMakeLists.txt | 3 +++ google/cloud/spanner/quickstart/Makefile | 2 +- google/cloud/speech/quickstart/.bazelrc | 7 +++---- google/cloud/speech/quickstart/CMakeLists.txt | 3 +++ google/cloud/speech/quickstart/Makefile | 2 +- google/cloud/sql/quickstart/.bazelrc | 7 +++---- google/cloud/sql/quickstart/CMakeLists.txt | 3 +++ google/cloud/sql/quickstart/Makefile | 2 +- google/cloud/storage/quickstart/.bazelrc | 3 +++ google/cloud/storage/quickstart/CMakeLists.txt | 3 +++ google/cloud/storage/quickstart/Makefile | 2 +- .../storagebatchoperations/quickstart/.bazelrc | 13 ++++++------- .../quickstart/CMakeLists.txt | 3 +++ .../storagebatchoperations/quickstart/Makefile | 2 +- google/cloud/storagecontrol/quickstart/.bazelrc | 7 +++---- .../cloud/storagecontrol/quickstart/CMakeLists.txt | 3 +++ google/cloud/storagecontrol/quickstart/Makefile | 2 +- google/cloud/storageinsights/quickstart/.bazelrc | 7 +++---- .../cloud/storageinsights/quickstart/CMakeLists.txt | 3 +++ google/cloud/storageinsights/quickstart/Makefile | 2 +- google/cloud/storagetransfer/quickstart/.bazelrc | 7 +++---- .../cloud/storagetransfer/quickstart/CMakeLists.txt | 3 +++ google/cloud/storagetransfer/quickstart/Makefile | 2 +- google/cloud/support/quickstart/.bazelrc | 7 +++---- google/cloud/support/quickstart/CMakeLists.txt | 3 +++ google/cloud/support/quickstart/Makefile | 2 +- google/cloud/talent/quickstart/.bazelrc | 7 +++---- google/cloud/talent/quickstart/CMakeLists.txt | 3 +++ google/cloud/talent/quickstart/Makefile | 2 +- google/cloud/tasks/quickstart/.bazelrc | 7 +++---- google/cloud/tasks/quickstart/CMakeLists.txt | 3 +++ google/cloud/tasks/quickstart/Makefile | 2 +- google/cloud/telcoautomation/quickstart/.bazelrc | 7 +++---- .../cloud/telcoautomation/quickstart/CMakeLists.txt | 3 +++ google/cloud/telcoautomation/quickstart/Makefile | 2 +- google/cloud/texttospeech/quickstart/.bazelrc | 7 +++---- google/cloud/texttospeech/quickstart/CMakeLists.txt | 3 +++ google/cloud/texttospeech/quickstart/Makefile | 2 +- google/cloud/timeseriesinsights/quickstart/.bazelrc | 7 +++---- .../timeseriesinsights/quickstart/CMakeLists.txt | 3 +++ google/cloud/timeseriesinsights/quickstart/Makefile | 2 +- google/cloud/tpu/quickstart/.bazelrc | 7 +++---- google/cloud/tpu/quickstart/CMakeLists.txt | 3 +++ google/cloud/tpu/quickstart/Makefile | 2 +- google/cloud/trace/quickstart/.bazelrc | 7 +++---- google/cloud/trace/quickstart/CMakeLists.txt | 3 +++ google/cloud/trace/quickstart/Makefile | 2 +- google/cloud/translate/quickstart/.bazelrc | 7 +++---- google/cloud/translate/quickstart/CMakeLists.txt | 3 +++ google/cloud/translate/quickstart/Makefile | 2 +- google/cloud/vectorsearch/quickstart/.bazelrc | 13 ++++++------- google/cloud/vectorsearch/quickstart/CMakeLists.txt | 3 +++ google/cloud/vectorsearch/quickstart/Makefile | 2 +- google/cloud/video/quickstart/.bazelrc | 7 +++---- google/cloud/video/quickstart/CMakeLists.txt | 3 +++ google/cloud/video/quickstart/Makefile | 2 +- google/cloud/videointelligence/quickstart/.bazelrc | 7 +++---- .../videointelligence/quickstart/CMakeLists.txt | 3 +++ google/cloud/videointelligence/quickstart/Makefile | 2 +- google/cloud/vision/quickstart/.bazelrc | 7 +++---- google/cloud/vision/quickstart/CMakeLists.txt | 3 +++ google/cloud/vision/quickstart/Makefile | 2 +- google/cloud/visionai/quickstart/.bazelrc | 13 ++++++------- google/cloud/visionai/quickstart/CMakeLists.txt | 3 +++ google/cloud/visionai/quickstart/Makefile | 2 +- google/cloud/vmmigration/quickstart/.bazelrc | 7 +++---- google/cloud/vmmigration/quickstart/CMakeLists.txt | 3 +++ google/cloud/vmmigration/quickstart/Makefile | 2 +- google/cloud/vmwareengine/quickstart/.bazelrc | 7 +++---- google/cloud/vmwareengine/quickstart/CMakeLists.txt | 3 +++ google/cloud/vmwareengine/quickstart/Makefile | 2 +- google/cloud/vpcaccess/quickstart/.bazelrc | 7 +++---- google/cloud/vpcaccess/quickstart/CMakeLists.txt | 3 +++ google/cloud/vpcaccess/quickstart/Makefile | 2 +- google/cloud/webrisk/quickstart/.bazelrc | 7 +++---- google/cloud/webrisk/quickstart/CMakeLists.txt | 3 +++ google/cloud/webrisk/quickstart/Makefile | 2 +- google/cloud/websecurityscanner/quickstart/.bazelrc | 7 +++---- .../websecurityscanner/quickstart/CMakeLists.txt | 3 +++ google/cloud/websecurityscanner/quickstart/Makefile | 2 +- google/cloud/workflows/quickstart/.bazelrc | 7 +++---- google/cloud/workflows/quickstart/CMakeLists.txt | 3 +++ google/cloud/workflows/quickstart/Makefile | 2 +- google/cloud/workloadmanager/quickstart/.bazelrc | 13 ++++++------- .../cloud/workloadmanager/quickstart/CMakeLists.txt | 3 +++ google/cloud/workloadmanager/quickstart/Makefile | 2 +- google/cloud/workstations/quickstart/.bazelrc | 7 +++---- google/cloud/workstations/quickstart/CMakeLists.txt | 3 +++ google/cloud/workstations/quickstart/Makefile | 2 +- 485 files changed, 1194 insertions(+), 842 deletions(-) diff --git a/google/cloud/accessapproval/quickstart/.bazelrc b/google/cloud/accessapproval/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/accessapproval/quickstart/.bazelrc +++ b/google/cloud/accessapproval/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/accessapproval/quickstart/CMakeLists.txt b/google/cloud/accessapproval/quickstart/CMakeLists.txt index 43a083c44f1c3..7d2ab6a46d314 100644 --- a/google/cloud/accessapproval/quickstart/CMakeLists.txt +++ b/google/cloud/accessapproval/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-accessapproval-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_accessapproval REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/accessapproval/quickstart/Makefile b/google/cloud/accessapproval/quickstart/Makefile index 2425f22a51ca8..272696b9ecc9d 100644 --- a/google/cloud/accessapproval/quickstart/Makefile +++ b/google/cloud/accessapproval/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/accesscontextmanager/quickstart/.bazelrc b/google/cloud/accesscontextmanager/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/accesscontextmanager/quickstart/.bazelrc +++ b/google/cloud/accesscontextmanager/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/accesscontextmanager/quickstart/CMakeLists.txt b/google/cloud/accesscontextmanager/quickstart/CMakeLists.txt index fd63ac9813095..67a61ec1099e4 100644 --- a/google/cloud/accesscontextmanager/quickstart/CMakeLists.txt +++ b/google/cloud/accesscontextmanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-accesscontextmanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_accesscontextmanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/accesscontextmanager/quickstart/Makefile b/google/cloud/accesscontextmanager/quickstart/Makefile index 36202e9af7646..6a488f83905ea 100644 --- a/google/cloud/accesscontextmanager/quickstart/Makefile +++ b/google/cloud/accesscontextmanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/advisorynotifications/quickstart/.bazelrc b/google/cloud/advisorynotifications/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/advisorynotifications/quickstart/.bazelrc +++ b/google/cloud/advisorynotifications/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/advisorynotifications/quickstart/CMakeLists.txt b/google/cloud/advisorynotifications/quickstart/CMakeLists.txt index ab6388f6a9e72..1b74c36253e8e 100644 --- a/google/cloud/advisorynotifications/quickstart/CMakeLists.txt +++ b/google/cloud/advisorynotifications/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-advisorynotifications-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_advisorynotifications REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/advisorynotifications/quickstart/Makefile b/google/cloud/advisorynotifications/quickstart/Makefile index 1474409766270..36c647e655c22 100644 --- a/google/cloud/advisorynotifications/quickstart/Makefile +++ b/google/cloud/advisorynotifications/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/aiplatform/quickstart/.bazelrc b/google/cloud/aiplatform/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/aiplatform/quickstart/.bazelrc +++ b/google/cloud/aiplatform/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/aiplatform/quickstart/CMakeLists.txt b/google/cloud/aiplatform/quickstart/CMakeLists.txt index 7b22a138fc6af..ba8bd1d7951cc 100644 --- a/google/cloud/aiplatform/quickstart/CMakeLists.txt +++ b/google/cloud/aiplatform/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-aiplatform-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_aiplatform REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/aiplatform/quickstart/Makefile b/google/cloud/aiplatform/quickstart/Makefile index 76b3398241e8d..dbef0cdccab6e 100644 --- a/google/cloud/aiplatform/quickstart/Makefile +++ b/google/cloud/aiplatform/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/alloydb/quickstart/.bazelrc b/google/cloud/alloydb/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/alloydb/quickstart/.bazelrc +++ b/google/cloud/alloydb/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/alloydb/quickstart/CMakeLists.txt b/google/cloud/alloydb/quickstart/CMakeLists.txt index 38b1c1ceaca63..a6d2020e62e14 100644 --- a/google/cloud/alloydb/quickstart/CMakeLists.txt +++ b/google/cloud/alloydb/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-alloydb-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_alloydb REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/alloydb/quickstart/Makefile b/google/cloud/alloydb/quickstart/Makefile index d43f5b994195e..c0a4683f19c4e 100644 --- a/google/cloud/alloydb/quickstart/Makefile +++ b/google/cloud/alloydb/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/apigateway/quickstart/.bazelrc b/google/cloud/apigateway/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/apigateway/quickstart/.bazelrc +++ b/google/cloud/apigateway/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/apigateway/quickstart/CMakeLists.txt b/google/cloud/apigateway/quickstart/CMakeLists.txt index 79dc737b27e39..1e71159da49bc 100644 --- a/google/cloud/apigateway/quickstart/CMakeLists.txt +++ b/google/cloud/apigateway/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-apigateway-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_apigateway REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/apigateway/quickstart/Makefile b/google/cloud/apigateway/quickstart/Makefile index d5434e7418246..117e4a5b9f010 100644 --- a/google/cloud/apigateway/quickstart/Makefile +++ b/google/cloud/apigateway/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/apigeeconnect/quickstart/.bazelrc b/google/cloud/apigeeconnect/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/apigeeconnect/quickstart/.bazelrc +++ b/google/cloud/apigeeconnect/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/apigeeconnect/quickstart/CMakeLists.txt b/google/cloud/apigeeconnect/quickstart/CMakeLists.txt index 776822142848f..f922de4338962 100644 --- a/google/cloud/apigeeconnect/quickstart/CMakeLists.txt +++ b/google/cloud/apigeeconnect/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-apigeeconnect-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_apigeeconnect REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/apigeeconnect/quickstart/Makefile b/google/cloud/apigeeconnect/quickstart/Makefile index 3ff98eeed7462..3f72c8ded13d9 100644 --- a/google/cloud/apigeeconnect/quickstart/Makefile +++ b/google/cloud/apigeeconnect/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/apikeys/quickstart/.bazelrc b/google/cloud/apikeys/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/apikeys/quickstart/.bazelrc +++ b/google/cloud/apikeys/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/apikeys/quickstart/CMakeLists.txt b/google/cloud/apikeys/quickstart/CMakeLists.txt index fa968d0c91ef6..7c96bd81ef59e 100644 --- a/google/cloud/apikeys/quickstart/CMakeLists.txt +++ b/google/cloud/apikeys/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-apikeys-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_apikeys REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/apikeys/quickstart/Makefile b/google/cloud/apikeys/quickstart/Makefile index 94f9b82bca19a..271cde61d5854 100644 --- a/google/cloud/apikeys/quickstart/Makefile +++ b/google/cloud/apikeys/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/apiregistry/quickstart/.bazelrc b/google/cloud/apiregistry/quickstart/.bazelrc index c884db46c2b4d..e88672558bca1 100644 --- a/google/cloud/apiregistry/quickstart/.bazelrc +++ b/google/cloud/apiregistry/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/apiregistry/quickstart/CMakeLists.txt b/google/cloud/apiregistry/quickstart/CMakeLists.txt index 6bbdd791bd0e0..2bb0494a853e4 100644 --- a/google/cloud/apiregistry/quickstart/CMakeLists.txt +++ b/google/cloud/apiregistry/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-apiregistry-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_apiregistry REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/apiregistry/quickstart/Makefile b/google/cloud/apiregistry/quickstart/Makefile index 70dc009e8162a..dbeaac7caec7e 100644 --- a/google/cloud/apiregistry/quickstart/Makefile +++ b/google/cloud/apiregistry/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/appengine/quickstart/.bazelrc b/google/cloud/appengine/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/appengine/quickstart/.bazelrc +++ b/google/cloud/appengine/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/appengine/quickstart/CMakeLists.txt b/google/cloud/appengine/quickstart/CMakeLists.txt index 94e4b97a4254a..3addbeeef7852 100644 --- a/google/cloud/appengine/quickstart/CMakeLists.txt +++ b/google/cloud/appengine/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-appengine-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_appengine REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/appengine/quickstart/Makefile b/google/cloud/appengine/quickstart/Makefile index 8e99dbfc2e35c..acdf523edc934 100644 --- a/google/cloud/appengine/quickstart/Makefile +++ b/google/cloud/appengine/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/apphub/quickstart/.bazelrc b/google/cloud/apphub/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/apphub/quickstart/.bazelrc +++ b/google/cloud/apphub/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/apphub/quickstart/CMakeLists.txt b/google/cloud/apphub/quickstart/CMakeLists.txt index acffa96eb4b18..54b15ccee14d6 100644 --- a/google/cloud/apphub/quickstart/CMakeLists.txt +++ b/google/cloud/apphub/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-apphub-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_apphub REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/apphub/quickstart/Makefile b/google/cloud/apphub/quickstart/Makefile index 9d113dbc1cd9f..657d2ccdc3d28 100644 --- a/google/cloud/apphub/quickstart/Makefile +++ b/google/cloud/apphub/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/artifactregistry/quickstart/.bazelrc b/google/cloud/artifactregistry/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/artifactregistry/quickstart/.bazelrc +++ b/google/cloud/artifactregistry/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/artifactregistry/quickstart/CMakeLists.txt b/google/cloud/artifactregistry/quickstart/CMakeLists.txt index 3d9736a372ee2..59d9a8a9d553f 100644 --- a/google/cloud/artifactregistry/quickstart/CMakeLists.txt +++ b/google/cloud/artifactregistry/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-artifactregistry-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_artifactregistry REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/artifactregistry/quickstart/Makefile b/google/cloud/artifactregistry/quickstart/Makefile index 49cdd55c78cc5..3f55062424ddb 100644 --- a/google/cloud/artifactregistry/quickstart/Makefile +++ b/google/cloud/artifactregistry/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/asset/quickstart/.bazelrc b/google/cloud/asset/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/asset/quickstart/.bazelrc +++ b/google/cloud/asset/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/asset/quickstart/CMakeLists.txt b/google/cloud/asset/quickstart/CMakeLists.txt index b49b78bf356a0..f993268c5b3f9 100644 --- a/google/cloud/asset/quickstart/CMakeLists.txt +++ b/google/cloud/asset/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-asset-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_asset REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/asset/quickstart/Makefile b/google/cloud/asset/quickstart/Makefile index 9a287aab194d4..ea9d77a36c927 100644 --- a/google/cloud/asset/quickstart/Makefile +++ b/google/cloud/asset/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/assuredworkloads/quickstart/.bazelrc b/google/cloud/assuredworkloads/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/assuredworkloads/quickstart/.bazelrc +++ b/google/cloud/assuredworkloads/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/assuredworkloads/quickstart/CMakeLists.txt b/google/cloud/assuredworkloads/quickstart/CMakeLists.txt index c6cf9373b7157..c86c4d63bb797 100644 --- a/google/cloud/assuredworkloads/quickstart/CMakeLists.txt +++ b/google/cloud/assuredworkloads/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-assuredworkloads-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_assuredworkloads REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/assuredworkloads/quickstart/Makefile b/google/cloud/assuredworkloads/quickstart/Makefile index a657c812e6a60..ae3bb5be5013f 100644 --- a/google/cloud/assuredworkloads/quickstart/Makefile +++ b/google/cloud/assuredworkloads/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/auditmanager/quickstart/.bazelrc b/google/cloud/auditmanager/quickstart/.bazelrc index c884db46c2b4d..e88672558bca1 100644 --- a/google/cloud/auditmanager/quickstart/.bazelrc +++ b/google/cloud/auditmanager/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/auditmanager/quickstart/CMakeLists.txt b/google/cloud/auditmanager/quickstart/CMakeLists.txt index ee787043e69a1..000ef8893285d 100644 --- a/google/cloud/auditmanager/quickstart/CMakeLists.txt +++ b/google/cloud/auditmanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-auditmanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_auditmanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/auditmanager/quickstart/Makefile b/google/cloud/auditmanager/quickstart/Makefile index 2e9118ba54408..fefae75186d7f 100644 --- a/google/cloud/auditmanager/quickstart/Makefile +++ b/google/cloud/auditmanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/automl/quickstart/.bazelrc b/google/cloud/automl/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/automl/quickstart/.bazelrc +++ b/google/cloud/automl/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/automl/quickstart/CMakeLists.txt b/google/cloud/automl/quickstart/CMakeLists.txt index 27664b3628e95..33351c021776a 100644 --- a/google/cloud/automl/quickstart/CMakeLists.txt +++ b/google/cloud/automl/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-automl-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_automl REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/automl/quickstart/Makefile b/google/cloud/automl/quickstart/Makefile index 962647ec56a64..74c7496d73a41 100644 --- a/google/cloud/automl/quickstart/Makefile +++ b/google/cloud/automl/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/backupdr/quickstart/.bazelrc b/google/cloud/backupdr/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/backupdr/quickstart/.bazelrc +++ b/google/cloud/backupdr/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/backupdr/quickstart/CMakeLists.txt b/google/cloud/backupdr/quickstart/CMakeLists.txt index b02302a95f2cc..39189877cc221 100644 --- a/google/cloud/backupdr/quickstart/CMakeLists.txt +++ b/google/cloud/backupdr/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-backupdr-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_backupdr REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/backupdr/quickstart/Makefile b/google/cloud/backupdr/quickstart/Makefile index 49dec1968f575..9c39da3d1adf6 100644 --- a/google/cloud/backupdr/quickstart/Makefile +++ b/google/cloud/backupdr/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/baremetalsolution/quickstart/.bazelrc b/google/cloud/baremetalsolution/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/baremetalsolution/quickstart/.bazelrc +++ b/google/cloud/baremetalsolution/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/baremetalsolution/quickstart/CMakeLists.txt b/google/cloud/baremetalsolution/quickstart/CMakeLists.txt index 5f2b143060e85..3c095fdc7f3c2 100644 --- a/google/cloud/baremetalsolution/quickstart/CMakeLists.txt +++ b/google/cloud/baremetalsolution/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-baremetalsolution-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_baremetalsolution REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/baremetalsolution/quickstart/Makefile b/google/cloud/baremetalsolution/quickstart/Makefile index 661bb3048902d..c9277313cf40c 100644 --- a/google/cloud/baremetalsolution/quickstart/Makefile +++ b/google/cloud/baremetalsolution/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/batch/quickstart/.bazelrc b/google/cloud/batch/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/batch/quickstart/.bazelrc +++ b/google/cloud/batch/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/batch/quickstart/CMakeLists.txt b/google/cloud/batch/quickstart/CMakeLists.txt index ee62b0e45f103..3ddbc6b9b9bc9 100644 --- a/google/cloud/batch/quickstart/CMakeLists.txt +++ b/google/cloud/batch/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-batch-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_batch REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/batch/quickstart/Makefile b/google/cloud/batch/quickstart/Makefile index 33de0d62704d8..ccf992e9ceab1 100644 --- a/google/cloud/batch/quickstart/Makefile +++ b/google/cloud/batch/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/beyondcorp/quickstart/.bazelrc b/google/cloud/beyondcorp/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/beyondcorp/quickstart/.bazelrc +++ b/google/cloud/beyondcorp/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/beyondcorp/quickstart/CMakeLists.txt b/google/cloud/beyondcorp/quickstart/CMakeLists.txt index 00e6d31b05121..a35e8373f6b8d 100644 --- a/google/cloud/beyondcorp/quickstart/CMakeLists.txt +++ b/google/cloud/beyondcorp/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-beyondcorp-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_beyondcorp REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/beyondcorp/quickstart/Makefile b/google/cloud/beyondcorp/quickstart/Makefile index 2547ef925433e..48a01d56a2f12 100644 --- a/google/cloud/beyondcorp/quickstart/Makefile +++ b/google/cloud/beyondcorp/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/bigquery/quickstart/.bazelrc b/google/cloud/bigquery/quickstart/.bazelrc index 1ccef142904e8..3112a8ec55f89 100644 --- a/google/cloud/bigquery/quickstart/.bazelrc +++ b/google/cloud/bigquery/quickstart/.bazelrc @@ -15,8 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/bigquery/quickstart/CMakeLists.txt b/google/cloud/bigquery/quickstart/CMakeLists.txt index 71975b5ceb3f2..36c549e4144fa 100644 --- a/google/cloud/bigquery/quickstart/CMakeLists.txt +++ b/google/cloud/bigquery/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-bigquery-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_bigquery REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/bigquery/quickstart/Makefile b/google/cloud/bigquery/quickstart/Makefile index 636af4633ae7b..5cdfeea023177 100644 --- a/google/cloud/bigquery/quickstart/Makefile +++ b/google/cloud/bigquery/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/bigquerycontrol/quickstart/.bazelrc b/google/cloud/bigquerycontrol/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/bigquerycontrol/quickstart/.bazelrc +++ b/google/cloud/bigquerycontrol/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/bigquerycontrol/quickstart/CMakeLists.txt b/google/cloud/bigquerycontrol/quickstart/CMakeLists.txt index 10e1235254bca..2edcc4cfb8fcc 100644 --- a/google/cloud/bigquerycontrol/quickstart/CMakeLists.txt +++ b/google/cloud/bigquerycontrol/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-bigquerycontrol-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_bigquerycontrol REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/bigquerycontrol/quickstart/Makefile b/google/cloud/bigquerycontrol/quickstart/Makefile index ea9907a781256..6a14712b5d4fc 100644 --- a/google/cloud/bigquerycontrol/quickstart/Makefile +++ b/google/cloud/bigquerycontrol/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/bigtable/quickstart/.bazelrc b/google/cloud/bigtable/quickstart/.bazelrc index 1ccef142904e8..3112a8ec55f89 100644 --- a/google/cloud/bigtable/quickstart/.bazelrc +++ b/google/cloud/bigtable/quickstart/.bazelrc @@ -15,8 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/bigtable/quickstart/CMakeLists.txt b/google/cloud/bigtable/quickstart/CMakeLists.txt index 9d5cb3c94b00d..b5d4123dbdaa1 100644 --- a/google/cloud/bigtable/quickstart/CMakeLists.txt +++ b/google/cloud/bigtable/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-bigtable-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_bigtable REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/bigtable/quickstart/Makefile b/google/cloud/bigtable/quickstart/Makefile index b5608c5c6422e..11e03bda6557a 100644 --- a/google/cloud/bigtable/quickstart/Makefile +++ b/google/cloud/bigtable/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/billing/quickstart/.bazelrc b/google/cloud/billing/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/billing/quickstart/.bazelrc +++ b/google/cloud/billing/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/billing/quickstart/CMakeLists.txt b/google/cloud/billing/quickstart/CMakeLists.txt index ee84433c1352e..695aed1cb968e 100644 --- a/google/cloud/billing/quickstart/CMakeLists.txt +++ b/google/cloud/billing/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-billing-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_billing REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/billing/quickstart/Makefile b/google/cloud/billing/quickstart/Makefile index 809b5b6695a9a..963830a0bc49c 100644 --- a/google/cloud/billing/quickstart/Makefile +++ b/google/cloud/billing/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/binaryauthorization/quickstart/.bazelrc b/google/cloud/binaryauthorization/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/binaryauthorization/quickstart/.bazelrc +++ b/google/cloud/binaryauthorization/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/binaryauthorization/quickstart/CMakeLists.txt b/google/cloud/binaryauthorization/quickstart/CMakeLists.txt index 1476d4242cecb..704ba59ea7628 100644 --- a/google/cloud/binaryauthorization/quickstart/CMakeLists.txt +++ b/google/cloud/binaryauthorization/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-binaryauthorization-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_binaryauthorization REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/binaryauthorization/quickstart/Makefile b/google/cloud/binaryauthorization/quickstart/Makefile index 3fa504c0b6c7c..16d22b9806d26 100644 --- a/google/cloud/binaryauthorization/quickstart/Makefile +++ b/google/cloud/binaryauthorization/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/certificatemanager/quickstart/.bazelrc b/google/cloud/certificatemanager/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/certificatemanager/quickstart/.bazelrc +++ b/google/cloud/certificatemanager/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/certificatemanager/quickstart/CMakeLists.txt b/google/cloud/certificatemanager/quickstart/CMakeLists.txt index 438b2212c8ec8..f26b2a4cfbe19 100644 --- a/google/cloud/certificatemanager/quickstart/CMakeLists.txt +++ b/google/cloud/certificatemanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-certificatemanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_certificatemanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/certificatemanager/quickstart/Makefile b/google/cloud/certificatemanager/quickstart/Makefile index ec5b07b882ac6..50966580236bf 100644 --- a/google/cloud/certificatemanager/quickstart/Makefile +++ b/google/cloud/certificatemanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/ces/quickstart/.bazelrc b/google/cloud/ces/quickstart/.bazelrc index c884db46c2b4d..e88672558bca1 100644 --- a/google/cloud/ces/quickstart/.bazelrc +++ b/google/cloud/ces/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/ces/quickstart/CMakeLists.txt b/google/cloud/ces/quickstart/CMakeLists.txt index a7e65582e2519..53bda23bd6969 100644 --- a/google/cloud/ces/quickstart/CMakeLists.txt +++ b/google/cloud/ces/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-ces-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_ces REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/ces/quickstart/Makefile b/google/cloud/ces/quickstart/Makefile index 25de5e91ee8c4..8425abcee098b 100644 --- a/google/cloud/ces/quickstart/Makefile +++ b/google/cloud/ces/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/channel/quickstart/.bazelrc b/google/cloud/channel/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/channel/quickstart/.bazelrc +++ b/google/cloud/channel/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/channel/quickstart/CMakeLists.txt b/google/cloud/channel/quickstart/CMakeLists.txt index 493f9ed5cc126..1be72d1aa0b94 100644 --- a/google/cloud/channel/quickstart/CMakeLists.txt +++ b/google/cloud/channel/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-channel-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_channel REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/channel/quickstart/Makefile b/google/cloud/channel/quickstart/Makefile index 500784534738e..be54c96ad3700 100644 --- a/google/cloud/channel/quickstart/Makefile +++ b/google/cloud/channel/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/chronicle/quickstart/.bazelrc b/google/cloud/chronicle/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/chronicle/quickstart/.bazelrc +++ b/google/cloud/chronicle/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/chronicle/quickstart/CMakeLists.txt b/google/cloud/chronicle/quickstart/CMakeLists.txt index 9aba02742583a..734d536c040aa 100644 --- a/google/cloud/chronicle/quickstart/CMakeLists.txt +++ b/google/cloud/chronicle/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-chronicle-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_chronicle REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/chronicle/quickstart/Makefile b/google/cloud/chronicle/quickstart/Makefile index db30e1183b2a2..3ff052d05508d 100644 --- a/google/cloud/chronicle/quickstart/Makefile +++ b/google/cloud/chronicle/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/cloudbuild/quickstart/.bazelrc b/google/cloud/cloudbuild/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/cloudbuild/quickstart/.bazelrc +++ b/google/cloud/cloudbuild/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/cloudbuild/quickstart/CMakeLists.txt b/google/cloud/cloudbuild/quickstart/CMakeLists.txt index 6d1c145832e49..62e4aeb3f84d5 100644 --- a/google/cloud/cloudbuild/quickstart/CMakeLists.txt +++ b/google/cloud/cloudbuild/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-cloudbuild-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_cloudbuild REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/cloudbuild/quickstart/Makefile b/google/cloud/cloudbuild/quickstart/Makefile index 9909356aabae9..28110e6bf853f 100644 --- a/google/cloud/cloudbuild/quickstart/Makefile +++ b/google/cloud/cloudbuild/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/cloudcontrolspartner/quickstart/.bazelrc b/google/cloud/cloudcontrolspartner/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/cloudcontrolspartner/quickstart/.bazelrc +++ b/google/cloud/cloudcontrolspartner/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/cloudcontrolspartner/quickstart/CMakeLists.txt b/google/cloud/cloudcontrolspartner/quickstart/CMakeLists.txt index 2ad4e2b8d9682..147823515470a 100644 --- a/google/cloud/cloudcontrolspartner/quickstart/CMakeLists.txt +++ b/google/cloud/cloudcontrolspartner/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-cloudcontrolspartner-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_cloudcontrolspartner REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/cloudcontrolspartner/quickstart/Makefile b/google/cloud/cloudcontrolspartner/quickstart/Makefile index 2944a41b4bd0b..6b9c2f9a767c5 100644 --- a/google/cloud/cloudcontrolspartner/quickstart/Makefile +++ b/google/cloud/cloudcontrolspartner/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/cloudquotas/quickstart/.bazelrc b/google/cloud/cloudquotas/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/cloudquotas/quickstart/.bazelrc +++ b/google/cloud/cloudquotas/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/cloudquotas/quickstart/CMakeLists.txt b/google/cloud/cloudquotas/quickstart/CMakeLists.txt index 830fb3b016bc5..2275f4d6c2796 100644 --- a/google/cloud/cloudquotas/quickstart/CMakeLists.txt +++ b/google/cloud/cloudquotas/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-cloudquotas-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_cloudquotas REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/cloudquotas/quickstart/Makefile b/google/cloud/cloudquotas/quickstart/Makefile index 67bb5eaf6df26..11c1a416562d8 100644 --- a/google/cloud/cloudquotas/quickstart/Makefile +++ b/google/cloud/cloudquotas/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/cloudsecuritycompliance/quickstart/.bazelrc b/google/cloud/cloudsecuritycompliance/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/cloudsecuritycompliance/quickstart/.bazelrc +++ b/google/cloud/cloudsecuritycompliance/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/cloudsecuritycompliance/quickstart/CMakeLists.txt b/google/cloud/cloudsecuritycompliance/quickstart/CMakeLists.txt index 596ac7dc6adc6..9d7d81ac1082b 100644 --- a/google/cloud/cloudsecuritycompliance/quickstart/CMakeLists.txt +++ b/google/cloud/cloudsecuritycompliance/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-cloudsecuritycompliance-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_cloudsecuritycompliance REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/cloudsecuritycompliance/quickstart/Makefile b/google/cloud/cloudsecuritycompliance/quickstart/Makefile index 3b1f4a515c064..94fa5e0af15c7 100644 --- a/google/cloud/cloudsecuritycompliance/quickstart/Makefile +++ b/google/cloud/cloudsecuritycompliance/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/commerce/quickstart/.bazelrc b/google/cloud/commerce/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/commerce/quickstart/.bazelrc +++ b/google/cloud/commerce/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/commerce/quickstart/CMakeLists.txt b/google/cloud/commerce/quickstart/CMakeLists.txt index f94daef0c5337..c6787f76b6150 100644 --- a/google/cloud/commerce/quickstart/CMakeLists.txt +++ b/google/cloud/commerce/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-commerce-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_commerce REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/commerce/quickstart/Makefile b/google/cloud/commerce/quickstart/Makefile index 0c6718430edef..4455d00d2b4f6 100644 --- a/google/cloud/commerce/quickstart/Makefile +++ b/google/cloud/commerce/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/composer/quickstart/.bazelrc b/google/cloud/composer/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/composer/quickstart/.bazelrc +++ b/google/cloud/composer/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/composer/quickstart/CMakeLists.txt b/google/cloud/composer/quickstart/CMakeLists.txt index a66281759a771..338d5d3746bf1 100644 --- a/google/cloud/composer/quickstart/CMakeLists.txt +++ b/google/cloud/composer/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-composer-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_composer REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/composer/quickstart/Makefile b/google/cloud/composer/quickstart/Makefile index e71025c13a4ef..b9548ee07a867 100644 --- a/google/cloud/composer/quickstart/Makefile +++ b/google/cloud/composer/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/compute/quickstart/.bazelrc b/google/cloud/compute/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/compute/quickstart/.bazelrc +++ b/google/cloud/compute/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/compute/quickstart/CMakeLists.txt b/google/cloud/compute/quickstart/CMakeLists.txt index 6eb7e6fd45d24..d40725e81a5de 100644 --- a/google/cloud/compute/quickstart/CMakeLists.txt +++ b/google/cloud/compute/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-compute-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_compute REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/compute/quickstart/Makefile b/google/cloud/compute/quickstart/Makefile index 09fd17d972b3a..3458f2a59b31c 100644 --- a/google/cloud/compute/quickstart/Makefile +++ b/google/cloud/compute/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/confidentialcomputing/quickstart/.bazelrc b/google/cloud/confidentialcomputing/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/confidentialcomputing/quickstart/.bazelrc +++ b/google/cloud/confidentialcomputing/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/confidentialcomputing/quickstart/CMakeLists.txt b/google/cloud/confidentialcomputing/quickstart/CMakeLists.txt index b578e116060b2..7f20a00cf72a2 100644 --- a/google/cloud/confidentialcomputing/quickstart/CMakeLists.txt +++ b/google/cloud/confidentialcomputing/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-confidentialcomputing-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_confidentialcomputing REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/confidentialcomputing/quickstart/Makefile b/google/cloud/confidentialcomputing/quickstart/Makefile index 12719174e8792..5ee4237010726 100644 --- a/google/cloud/confidentialcomputing/quickstart/Makefile +++ b/google/cloud/confidentialcomputing/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/config/quickstart/.bazelrc b/google/cloud/config/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/config/quickstart/.bazelrc +++ b/google/cloud/config/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/config/quickstart/CMakeLists.txt b/google/cloud/config/quickstart/CMakeLists.txt index e4f9c67a9f23e..1b9dd22c1651c 100644 --- a/google/cloud/config/quickstart/CMakeLists.txt +++ b/google/cloud/config/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-config-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_config REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/config/quickstart/Makefile b/google/cloud/config/quickstart/Makefile index e799062918553..b6fa6d5c99861 100644 --- a/google/cloud/config/quickstart/Makefile +++ b/google/cloud/config/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/configdelivery/quickstart/.bazelrc b/google/cloud/configdelivery/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/configdelivery/quickstart/.bazelrc +++ b/google/cloud/configdelivery/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/configdelivery/quickstart/CMakeLists.txt b/google/cloud/configdelivery/quickstart/CMakeLists.txt index 69ddd3e6199dd..d2190688ce2ea 100644 --- a/google/cloud/configdelivery/quickstart/CMakeLists.txt +++ b/google/cloud/configdelivery/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-configdelivery-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_configdelivery REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/configdelivery/quickstart/Makefile b/google/cloud/configdelivery/quickstart/Makefile index 5e2bcb351f1aa..d5ed263576bd9 100644 --- a/google/cloud/configdelivery/quickstart/Makefile +++ b/google/cloud/configdelivery/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/connectors/quickstart/.bazelrc b/google/cloud/connectors/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/connectors/quickstart/.bazelrc +++ b/google/cloud/connectors/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/connectors/quickstart/CMakeLists.txt b/google/cloud/connectors/quickstart/CMakeLists.txt index 7cf214a78a280..246bbbd27b344 100644 --- a/google/cloud/connectors/quickstart/CMakeLists.txt +++ b/google/cloud/connectors/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-connectors-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_connectors REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/connectors/quickstart/Makefile b/google/cloud/connectors/quickstart/Makefile index 7a90ebd3c266c..56427f9bda3e3 100644 --- a/google/cloud/connectors/quickstart/Makefile +++ b/google/cloud/connectors/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/contactcenterinsights/quickstart/.bazelrc b/google/cloud/contactcenterinsights/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/contactcenterinsights/quickstart/.bazelrc +++ b/google/cloud/contactcenterinsights/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/contactcenterinsights/quickstart/CMakeLists.txt b/google/cloud/contactcenterinsights/quickstart/CMakeLists.txt index 9b2c3194c6695..f9dfd32147e40 100644 --- a/google/cloud/contactcenterinsights/quickstart/CMakeLists.txt +++ b/google/cloud/contactcenterinsights/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-contactcenterinsights-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_contactcenterinsights REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/contactcenterinsights/quickstart/Makefile b/google/cloud/contactcenterinsights/quickstart/Makefile index a40507e6a712f..a8a07a806aec2 100644 --- a/google/cloud/contactcenterinsights/quickstart/Makefile +++ b/google/cloud/contactcenterinsights/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/container/quickstart/.bazelrc b/google/cloud/container/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/container/quickstart/.bazelrc +++ b/google/cloud/container/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/container/quickstart/CMakeLists.txt b/google/cloud/container/quickstart/CMakeLists.txt index 879fa857902bd..ee0f70ad3d4ac 100644 --- a/google/cloud/container/quickstart/CMakeLists.txt +++ b/google/cloud/container/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-container-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_container REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/container/quickstart/Makefile b/google/cloud/container/quickstart/Makefile index 974a63031955c..d6418c5b8539b 100644 --- a/google/cloud/container/quickstart/Makefile +++ b/google/cloud/container/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/containeranalysis/quickstart/.bazelrc b/google/cloud/containeranalysis/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/containeranalysis/quickstart/.bazelrc +++ b/google/cloud/containeranalysis/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/containeranalysis/quickstart/CMakeLists.txt b/google/cloud/containeranalysis/quickstart/CMakeLists.txt index 1ea25628e8978..af20bd0621745 100644 --- a/google/cloud/containeranalysis/quickstart/CMakeLists.txt +++ b/google/cloud/containeranalysis/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-containeranalysis-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_containeranalysis REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/containeranalysis/quickstart/Makefile b/google/cloud/containeranalysis/quickstart/Makefile index c5150be045122..a562aeb345962 100644 --- a/google/cloud/containeranalysis/quickstart/Makefile +++ b/google/cloud/containeranalysis/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/contentwarehouse/quickstart/.bazelrc b/google/cloud/contentwarehouse/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/contentwarehouse/quickstart/.bazelrc +++ b/google/cloud/contentwarehouse/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/contentwarehouse/quickstart/CMakeLists.txt b/google/cloud/contentwarehouse/quickstart/CMakeLists.txt index b303a40c283ee..f829a12904a0b 100644 --- a/google/cloud/contentwarehouse/quickstart/CMakeLists.txt +++ b/google/cloud/contentwarehouse/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-contentwarehouse-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_contentwarehouse REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/contentwarehouse/quickstart/Makefile b/google/cloud/contentwarehouse/quickstart/Makefile index 0cb97130d3c50..aadd4766c8dbf 100644 --- a/google/cloud/contentwarehouse/quickstart/Makefile +++ b/google/cloud/contentwarehouse/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/datacatalog/quickstart/.bazelrc b/google/cloud/datacatalog/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/datacatalog/quickstart/.bazelrc +++ b/google/cloud/datacatalog/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/datacatalog/quickstart/CMakeLists.txt b/google/cloud/datacatalog/quickstart/CMakeLists.txt index 1ca8f16d8f765..47df77d3d4ec9 100644 --- a/google/cloud/datacatalog/quickstart/CMakeLists.txt +++ b/google/cloud/datacatalog/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-datacatalog-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_datacatalog REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/datacatalog/quickstart/Makefile b/google/cloud/datacatalog/quickstart/Makefile index 9f56697ebac56..81ae20274277b 100644 --- a/google/cloud/datacatalog/quickstart/Makefile +++ b/google/cloud/datacatalog/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/dataform/quickstart/.bazelrc b/google/cloud/dataform/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/dataform/quickstart/.bazelrc +++ b/google/cloud/dataform/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/dataform/quickstart/CMakeLists.txt b/google/cloud/dataform/quickstart/CMakeLists.txt index aa9e72e50fe0b..0f6388faaa73e 100644 --- a/google/cloud/dataform/quickstart/CMakeLists.txt +++ b/google/cloud/dataform/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-dataform-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_dataform REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/dataform/quickstart/Makefile b/google/cloud/dataform/quickstart/Makefile index fa807c7aba60c..0b9f63c9863e7 100644 --- a/google/cloud/dataform/quickstart/Makefile +++ b/google/cloud/dataform/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/datafusion/quickstart/.bazelrc b/google/cloud/datafusion/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/datafusion/quickstart/.bazelrc +++ b/google/cloud/datafusion/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/datafusion/quickstart/CMakeLists.txt b/google/cloud/datafusion/quickstart/CMakeLists.txt index 7204feeb9f998..6193397c296d0 100644 --- a/google/cloud/datafusion/quickstart/CMakeLists.txt +++ b/google/cloud/datafusion/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-datafusion-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_datafusion REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/datafusion/quickstart/Makefile b/google/cloud/datafusion/quickstart/Makefile index ef2dcdb64253b..4d407abd8d8c0 100644 --- a/google/cloud/datafusion/quickstart/Makefile +++ b/google/cloud/datafusion/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/datamigration/quickstart/.bazelrc b/google/cloud/datamigration/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/datamigration/quickstart/.bazelrc +++ b/google/cloud/datamigration/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/datamigration/quickstart/CMakeLists.txt b/google/cloud/datamigration/quickstart/CMakeLists.txt index 4aac1acf858d1..62bd30a8687f6 100644 --- a/google/cloud/datamigration/quickstart/CMakeLists.txt +++ b/google/cloud/datamigration/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-datamigration-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_datamigration REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/datamigration/quickstart/Makefile b/google/cloud/datamigration/quickstart/Makefile index 72f7b0ae78884..918a571a622ef 100644 --- a/google/cloud/datamigration/quickstart/Makefile +++ b/google/cloud/datamigration/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/dataplex/quickstart/.bazelrc b/google/cloud/dataplex/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/dataplex/quickstart/.bazelrc +++ b/google/cloud/dataplex/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/dataplex/quickstart/CMakeLists.txt b/google/cloud/dataplex/quickstart/CMakeLists.txt index 4295f47f38361..f395dc3c1fd2a 100644 --- a/google/cloud/dataplex/quickstart/CMakeLists.txt +++ b/google/cloud/dataplex/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-dataplex-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_dataplex REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/dataplex/quickstart/Makefile b/google/cloud/dataplex/quickstart/Makefile index 6f2464d6233d9..278e3f09b5c60 100644 --- a/google/cloud/dataplex/quickstart/Makefile +++ b/google/cloud/dataplex/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/dataproc/quickstart/.bazelrc b/google/cloud/dataproc/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/dataproc/quickstart/.bazelrc +++ b/google/cloud/dataproc/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/dataproc/quickstart/CMakeLists.txt b/google/cloud/dataproc/quickstart/CMakeLists.txt index 264c92c2b4a5d..c0cd7b1ead873 100644 --- a/google/cloud/dataproc/quickstart/CMakeLists.txt +++ b/google/cloud/dataproc/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-dataproc-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_dataproc REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/dataproc/quickstart/Makefile b/google/cloud/dataproc/quickstart/Makefile index 9d222207b4a09..202e2c6f19be5 100644 --- a/google/cloud/dataproc/quickstart/Makefile +++ b/google/cloud/dataproc/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/datastore/quickstart/.bazelrc b/google/cloud/datastore/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/datastore/quickstart/.bazelrc +++ b/google/cloud/datastore/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/datastore/quickstart/CMakeLists.txt b/google/cloud/datastore/quickstart/CMakeLists.txt index 321cb9280941f..cb40ba0af6d0f 100644 --- a/google/cloud/datastore/quickstart/CMakeLists.txt +++ b/google/cloud/datastore/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-datastore-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_datastore REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/datastore/quickstart/Makefile b/google/cloud/datastore/quickstart/Makefile index ef8f5741c6995..5948f8332449f 100644 --- a/google/cloud/datastore/quickstart/Makefile +++ b/google/cloud/datastore/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/datastream/quickstart/.bazelrc b/google/cloud/datastream/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/datastream/quickstart/.bazelrc +++ b/google/cloud/datastream/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/datastream/quickstart/CMakeLists.txt b/google/cloud/datastream/quickstart/CMakeLists.txt index 9df1675dbdcec..91e7f6e5c06f2 100644 --- a/google/cloud/datastream/quickstart/CMakeLists.txt +++ b/google/cloud/datastream/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-datastream-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_datastream REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/datastream/quickstart/Makefile b/google/cloud/datastream/quickstart/Makefile index ec88486f094f1..ccd82a872c00c 100644 --- a/google/cloud/datastream/quickstart/Makefile +++ b/google/cloud/datastream/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/deploy/quickstart/.bazelrc b/google/cloud/deploy/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/deploy/quickstart/.bazelrc +++ b/google/cloud/deploy/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/deploy/quickstart/CMakeLists.txt b/google/cloud/deploy/quickstart/CMakeLists.txt index ce266969c5022..b03a891f0c6b0 100644 --- a/google/cloud/deploy/quickstart/CMakeLists.txt +++ b/google/cloud/deploy/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-deploy-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_deploy REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/deploy/quickstart/Makefile b/google/cloud/deploy/quickstart/Makefile index 3747953f4fbf7..1412eef14665e 100644 --- a/google/cloud/deploy/quickstart/Makefile +++ b/google/cloud/deploy/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/developerconnect/quickstart/.bazelrc b/google/cloud/developerconnect/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/developerconnect/quickstart/.bazelrc +++ b/google/cloud/developerconnect/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/developerconnect/quickstart/CMakeLists.txt b/google/cloud/developerconnect/quickstart/CMakeLists.txt index 1ecf6f64568b6..5208e7edfa8a0 100644 --- a/google/cloud/developerconnect/quickstart/CMakeLists.txt +++ b/google/cloud/developerconnect/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-developerconnect-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_developerconnect REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/developerconnect/quickstart/Makefile b/google/cloud/developerconnect/quickstart/Makefile index 7370ae52dd48f..5318eabd464e8 100644 --- a/google/cloud/developerconnect/quickstart/Makefile +++ b/google/cloud/developerconnect/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/devicestreaming/quickstart/.bazelrc b/google/cloud/devicestreaming/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/devicestreaming/quickstart/.bazelrc +++ b/google/cloud/devicestreaming/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/devicestreaming/quickstart/CMakeLists.txt b/google/cloud/devicestreaming/quickstart/CMakeLists.txt index f40c1e4a7ef0d..d46329145d171 100644 --- a/google/cloud/devicestreaming/quickstart/CMakeLists.txt +++ b/google/cloud/devicestreaming/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-devicestreaming-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_devicestreaming REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/devicestreaming/quickstart/Makefile b/google/cloud/devicestreaming/quickstart/Makefile index c72f975c23e35..3c97e8a8f09e7 100644 --- a/google/cloud/devicestreaming/quickstart/Makefile +++ b/google/cloud/devicestreaming/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/dialogflow_cx/quickstart/.bazelrc b/google/cloud/dialogflow_cx/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/dialogflow_cx/quickstart/.bazelrc +++ b/google/cloud/dialogflow_cx/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/dialogflow_cx/quickstart/CMakeLists.txt b/google/cloud/dialogflow_cx/quickstart/CMakeLists.txt index f497064f3b92b..80e009d8f6f23 100644 --- a/google/cloud/dialogflow_cx/quickstart/CMakeLists.txt +++ b/google/cloud/dialogflow_cx/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-dialogflow_cx-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_dialogflow_cx REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/dialogflow_cx/quickstart/Makefile b/google/cloud/dialogflow_cx/quickstart/Makefile index 610c7bb64629f..f120f42f83647 100644 --- a/google/cloud/dialogflow_cx/quickstart/Makefile +++ b/google/cloud/dialogflow_cx/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/dialogflow_es/quickstart/.bazelrc b/google/cloud/dialogflow_es/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/dialogflow_es/quickstart/.bazelrc +++ b/google/cloud/dialogflow_es/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/dialogflow_es/quickstart/CMakeLists.txt b/google/cloud/dialogflow_es/quickstart/CMakeLists.txt index c75ac7f210e55..0c6b0fcf43ea5 100644 --- a/google/cloud/dialogflow_es/quickstart/CMakeLists.txt +++ b/google/cloud/dialogflow_es/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-dialogflow_es-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_dialogflow_es REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/dialogflow_es/quickstart/Makefile b/google/cloud/dialogflow_es/quickstart/Makefile index 6887fc534ee74..05bd39faf0297 100644 --- a/google/cloud/dialogflow_es/quickstart/Makefile +++ b/google/cloud/dialogflow_es/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/discoveryengine/quickstart/.bazelrc b/google/cloud/discoveryengine/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/discoveryengine/quickstart/.bazelrc +++ b/google/cloud/discoveryengine/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/discoveryengine/quickstart/CMakeLists.txt b/google/cloud/discoveryengine/quickstart/CMakeLists.txt index 8558b10359396..42e137022abb1 100644 --- a/google/cloud/discoveryengine/quickstart/CMakeLists.txt +++ b/google/cloud/discoveryengine/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-discoveryengine-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_discoveryengine REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/discoveryengine/quickstart/Makefile b/google/cloud/discoveryengine/quickstart/Makefile index 44f7a11b1f803..eb99aec9b93d0 100644 --- a/google/cloud/discoveryengine/quickstart/Makefile +++ b/google/cloud/discoveryengine/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/dlp/quickstart/.bazelrc b/google/cloud/dlp/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/dlp/quickstart/.bazelrc +++ b/google/cloud/dlp/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/dlp/quickstart/CMakeLists.txt b/google/cloud/dlp/quickstart/CMakeLists.txt index d9401af1f860c..0b817124207b8 100644 --- a/google/cloud/dlp/quickstart/CMakeLists.txt +++ b/google/cloud/dlp/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-dlp-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_dlp REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/dlp/quickstart/Makefile b/google/cloud/dlp/quickstart/Makefile index 8f3b996db7fd5..e0effce1bbc5e 100644 --- a/google/cloud/dlp/quickstart/Makefile +++ b/google/cloud/dlp/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/documentai/quickstart/.bazelrc b/google/cloud/documentai/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/documentai/quickstart/.bazelrc +++ b/google/cloud/documentai/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/documentai/quickstart/CMakeLists.txt b/google/cloud/documentai/quickstart/CMakeLists.txt index aefda9b4a1769..b108983a6bcf1 100644 --- a/google/cloud/documentai/quickstart/CMakeLists.txt +++ b/google/cloud/documentai/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-documentai-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_documentai REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/documentai/quickstart/Makefile b/google/cloud/documentai/quickstart/Makefile index e19b1c6ca8916..aae6e468ba4ae 100644 --- a/google/cloud/documentai/quickstart/Makefile +++ b/google/cloud/documentai/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/domains/quickstart/.bazelrc b/google/cloud/domains/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/domains/quickstart/.bazelrc +++ b/google/cloud/domains/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/domains/quickstart/CMakeLists.txt b/google/cloud/domains/quickstart/CMakeLists.txt index 4e0bbb7dcb410..97b68a6f8b6bd 100644 --- a/google/cloud/domains/quickstart/CMakeLists.txt +++ b/google/cloud/domains/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-domains-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_domains REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/domains/quickstart/Makefile b/google/cloud/domains/quickstart/Makefile index 10bd5c9578b4e..299f37443d410 100644 --- a/google/cloud/domains/quickstart/Makefile +++ b/google/cloud/domains/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/edgecontainer/quickstart/.bazelrc b/google/cloud/edgecontainer/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/edgecontainer/quickstart/.bazelrc +++ b/google/cloud/edgecontainer/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/edgecontainer/quickstart/CMakeLists.txt b/google/cloud/edgecontainer/quickstart/CMakeLists.txt index 028c300d91a8b..d084038a2f6a0 100644 --- a/google/cloud/edgecontainer/quickstart/CMakeLists.txt +++ b/google/cloud/edgecontainer/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-edgecontainer-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_edgecontainer REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/edgecontainer/quickstart/Makefile b/google/cloud/edgecontainer/quickstart/Makefile index 76f52728ba9dc..746f293b8947a 100644 --- a/google/cloud/edgecontainer/quickstart/Makefile +++ b/google/cloud/edgecontainer/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/edgenetwork/quickstart/.bazelrc b/google/cloud/edgenetwork/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/edgenetwork/quickstart/.bazelrc +++ b/google/cloud/edgenetwork/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/edgenetwork/quickstart/CMakeLists.txt b/google/cloud/edgenetwork/quickstart/CMakeLists.txt index 69f624fa10c46..6025379f4f1b1 100644 --- a/google/cloud/edgenetwork/quickstart/CMakeLists.txt +++ b/google/cloud/edgenetwork/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-edgenetwork-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_edgenetwork REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/edgenetwork/quickstart/Makefile b/google/cloud/edgenetwork/quickstart/Makefile index 663fd0ef1c7b8..c577f44b6038c 100644 --- a/google/cloud/edgenetwork/quickstart/Makefile +++ b/google/cloud/edgenetwork/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/essentialcontacts/quickstart/.bazelrc b/google/cloud/essentialcontacts/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/essentialcontacts/quickstart/.bazelrc +++ b/google/cloud/essentialcontacts/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/essentialcontacts/quickstart/CMakeLists.txt b/google/cloud/essentialcontacts/quickstart/CMakeLists.txt index 7a7c71e913097..cd7ea8b21630c 100644 --- a/google/cloud/essentialcontacts/quickstart/CMakeLists.txt +++ b/google/cloud/essentialcontacts/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-essentialcontacts-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_essentialcontacts REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/essentialcontacts/quickstart/Makefile b/google/cloud/essentialcontacts/quickstart/Makefile index e815a5c4ef57a..2e752898b1255 100644 --- a/google/cloud/essentialcontacts/quickstart/Makefile +++ b/google/cloud/essentialcontacts/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/eventarc/quickstart/.bazelrc b/google/cloud/eventarc/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/eventarc/quickstart/.bazelrc +++ b/google/cloud/eventarc/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/eventarc/quickstart/CMakeLists.txt b/google/cloud/eventarc/quickstart/CMakeLists.txt index e73032cabf4ef..cdb13a2a01498 100644 --- a/google/cloud/eventarc/quickstart/CMakeLists.txt +++ b/google/cloud/eventarc/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-eventarc-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_eventarc REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/eventarc/quickstart/Makefile b/google/cloud/eventarc/quickstart/Makefile index 975f6b618b618..9c01296489bfc 100644 --- a/google/cloud/eventarc/quickstart/Makefile +++ b/google/cloud/eventarc/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/filestore/quickstart/.bazelrc b/google/cloud/filestore/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/filestore/quickstart/.bazelrc +++ b/google/cloud/filestore/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/filestore/quickstart/CMakeLists.txt b/google/cloud/filestore/quickstart/CMakeLists.txt index 730f7fc3c781d..017d7368366b5 100644 --- a/google/cloud/filestore/quickstart/CMakeLists.txt +++ b/google/cloud/filestore/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-filestore-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_filestore REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/filestore/quickstart/Makefile b/google/cloud/filestore/quickstart/Makefile index 4af6b2c88e783..e45c239d31e30 100644 --- a/google/cloud/filestore/quickstart/Makefile +++ b/google/cloud/filestore/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/financialservices/quickstart/.bazelrc b/google/cloud/financialservices/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/financialservices/quickstart/.bazelrc +++ b/google/cloud/financialservices/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/financialservices/quickstart/CMakeLists.txt b/google/cloud/financialservices/quickstart/CMakeLists.txt index dfd042956daf0..26a59d5aecfe3 100644 --- a/google/cloud/financialservices/quickstart/CMakeLists.txt +++ b/google/cloud/financialservices/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-financialservices-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_financialservices REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/financialservices/quickstart/Makefile b/google/cloud/financialservices/quickstart/Makefile index c3c8d92839ca3..ce9612d825eae 100644 --- a/google/cloud/financialservices/quickstart/Makefile +++ b/google/cloud/financialservices/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/functions/quickstart/.bazelrc b/google/cloud/functions/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/functions/quickstart/.bazelrc +++ b/google/cloud/functions/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/functions/quickstart/CMakeLists.txt b/google/cloud/functions/quickstart/CMakeLists.txt index 45226baf2c057..9b187cfb9f869 100644 --- a/google/cloud/functions/quickstart/CMakeLists.txt +++ b/google/cloud/functions/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-functions-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_functions REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/functions/quickstart/Makefile b/google/cloud/functions/quickstart/Makefile index 1f0efb3a7468a..bc84efaf49d3d 100644 --- a/google/cloud/functions/quickstart/Makefile +++ b/google/cloud/functions/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/geminidataanalytics/quickstart/.bazelrc b/google/cloud/geminidataanalytics/quickstart/.bazelrc index c884db46c2b4d..e88672558bca1 100644 --- a/google/cloud/geminidataanalytics/quickstart/.bazelrc +++ b/google/cloud/geminidataanalytics/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/geminidataanalytics/quickstart/CMakeLists.txt b/google/cloud/geminidataanalytics/quickstart/CMakeLists.txt index fc28cf29fc905..da795dcec3855 100644 --- a/google/cloud/geminidataanalytics/quickstart/CMakeLists.txt +++ b/google/cloud/geminidataanalytics/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-geminidataanalytics-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_geminidataanalytics REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/geminidataanalytics/quickstart/Makefile b/google/cloud/geminidataanalytics/quickstart/Makefile index ff3343e393f53..e4a7ea6b4cb82 100644 --- a/google/cloud/geminidataanalytics/quickstart/Makefile +++ b/google/cloud/geminidataanalytics/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/gkebackup/quickstart/.bazelrc b/google/cloud/gkebackup/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/gkebackup/quickstart/.bazelrc +++ b/google/cloud/gkebackup/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/gkebackup/quickstart/CMakeLists.txt b/google/cloud/gkebackup/quickstart/CMakeLists.txt index 4ed167d062731..2534d59bac204 100644 --- a/google/cloud/gkebackup/quickstart/CMakeLists.txt +++ b/google/cloud/gkebackup/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-gkebackup-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_gkebackup REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/gkebackup/quickstart/Makefile b/google/cloud/gkebackup/quickstart/Makefile index 565d73d5c69a8..ae19683e1650c 100644 --- a/google/cloud/gkebackup/quickstart/Makefile +++ b/google/cloud/gkebackup/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/gkeconnect/quickstart/.bazelrc b/google/cloud/gkeconnect/quickstart/.bazelrc index d313ebed860ce..43034ebced876 100644 --- a/google/cloud/gkeconnect/quickstart/.bazelrc +++ b/google/cloud/gkeconnect/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/gkeconnect/quickstart/CMakeLists.txt b/google/cloud/gkeconnect/quickstart/CMakeLists.txt index 103c5148a6345..f56cdbb3f6735 100644 --- a/google/cloud/gkeconnect/quickstart/CMakeLists.txt +++ b/google/cloud/gkeconnect/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-gkeconnect-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_gkeconnect REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/gkeconnect/quickstart/Makefile b/google/cloud/gkeconnect/quickstart/Makefile index 9289a5c707fb0..10cf6e4128fd4 100644 --- a/google/cloud/gkeconnect/quickstart/Makefile +++ b/google/cloud/gkeconnect/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/gkehub/quickstart/.bazelrc b/google/cloud/gkehub/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/gkehub/quickstart/.bazelrc +++ b/google/cloud/gkehub/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/gkehub/quickstart/CMakeLists.txt b/google/cloud/gkehub/quickstart/CMakeLists.txt index 0fff3a654422a..38ca72f676fad 100644 --- a/google/cloud/gkehub/quickstart/CMakeLists.txt +++ b/google/cloud/gkehub/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-gkehub-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_gkehub REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/gkehub/quickstart/Makefile b/google/cloud/gkehub/quickstart/Makefile index 6c467894fdd18..1a8c23c449e08 100644 --- a/google/cloud/gkehub/quickstart/Makefile +++ b/google/cloud/gkehub/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/gkemulticloud/quickstart/.bazelrc b/google/cloud/gkemulticloud/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/gkemulticloud/quickstart/.bazelrc +++ b/google/cloud/gkemulticloud/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/gkemulticloud/quickstart/CMakeLists.txt b/google/cloud/gkemulticloud/quickstart/CMakeLists.txt index 7624e261771cd..62a0aaa36de54 100644 --- a/google/cloud/gkemulticloud/quickstart/CMakeLists.txt +++ b/google/cloud/gkemulticloud/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-gkemulticloud-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_gkemulticloud REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/gkemulticloud/quickstart/Makefile b/google/cloud/gkemulticloud/quickstart/Makefile index 76dee67f2db46..c6d8dbdb8880d 100644 --- a/google/cloud/gkemulticloud/quickstart/Makefile +++ b/google/cloud/gkemulticloud/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/gkerecommender/quickstart/.bazelrc b/google/cloud/gkerecommender/quickstart/.bazelrc index c884db46c2b4d..e88672558bca1 100644 --- a/google/cloud/gkerecommender/quickstart/.bazelrc +++ b/google/cloud/gkerecommender/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/gkerecommender/quickstart/CMakeLists.txt b/google/cloud/gkerecommender/quickstart/CMakeLists.txt index f55d9527a9a2c..e647d43ac83ae 100644 --- a/google/cloud/gkerecommender/quickstart/CMakeLists.txt +++ b/google/cloud/gkerecommender/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-gkerecommender-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_gkerecommender REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/gkerecommender/quickstart/Makefile b/google/cloud/gkerecommender/quickstart/Makefile index 360add07c0e11..c8ec82a3e89f7 100644 --- a/google/cloud/gkerecommender/quickstart/Makefile +++ b/google/cloud/gkerecommender/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/hypercomputecluster/quickstart/.bazelrc b/google/cloud/hypercomputecluster/quickstart/.bazelrc index c884db46c2b4d..e88672558bca1 100644 --- a/google/cloud/hypercomputecluster/quickstart/.bazelrc +++ b/google/cloud/hypercomputecluster/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/hypercomputecluster/quickstart/CMakeLists.txt b/google/cloud/hypercomputecluster/quickstart/CMakeLists.txt index b6e22881b2577..646bb27d503d7 100644 --- a/google/cloud/hypercomputecluster/quickstart/CMakeLists.txt +++ b/google/cloud/hypercomputecluster/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-hypercomputecluster-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_hypercomputecluster REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/hypercomputecluster/quickstart/Makefile b/google/cloud/hypercomputecluster/quickstart/Makefile index 21b36a552c763..5a63597fa2ef2 100644 --- a/google/cloud/hypercomputecluster/quickstart/Makefile +++ b/google/cloud/hypercomputecluster/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/iam/quickstart/.bazelrc b/google/cloud/iam/quickstart/.bazelrc index 1ccef142904e8..3112a8ec55f89 100644 --- a/google/cloud/iam/quickstart/.bazelrc +++ b/google/cloud/iam/quickstart/.bazelrc @@ -15,8 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/iam/quickstart/CMakeLists.txt b/google/cloud/iam/quickstart/CMakeLists.txt index 8c2092d92cc0f..4e0767a2b7520 100644 --- a/google/cloud/iam/quickstart/CMakeLists.txt +++ b/google/cloud/iam/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-iam-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_iam REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/iam/quickstart/Makefile b/google/cloud/iam/quickstart/Makefile index afc6188e1da92..94c0325a13744 100644 --- a/google/cloud/iam/quickstart/Makefile +++ b/google/cloud/iam/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/iap/quickstart/.bazelrc b/google/cloud/iap/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/iap/quickstart/.bazelrc +++ b/google/cloud/iap/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/iap/quickstart/CMakeLists.txt b/google/cloud/iap/quickstart/CMakeLists.txt index 3ea213c38db3f..4f1a9937ed003 100644 --- a/google/cloud/iap/quickstart/CMakeLists.txt +++ b/google/cloud/iap/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-iap-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_iap REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/iap/quickstart/Makefile b/google/cloud/iap/quickstart/Makefile index bd53e1f145369..b8e663c3824d0 100644 --- a/google/cloud/iap/quickstart/Makefile +++ b/google/cloud/iap/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/ids/quickstart/.bazelrc b/google/cloud/ids/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/ids/quickstart/.bazelrc +++ b/google/cloud/ids/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/ids/quickstart/CMakeLists.txt b/google/cloud/ids/quickstart/CMakeLists.txt index 3d89395c2c5cf..ca3d98cd1ef15 100644 --- a/google/cloud/ids/quickstart/CMakeLists.txt +++ b/google/cloud/ids/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-ids-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_ids REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/ids/quickstart/Makefile b/google/cloud/ids/quickstart/Makefile index cdbe5c07d67af..f72f49782852a 100644 --- a/google/cloud/ids/quickstart/Makefile +++ b/google/cloud/ids/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/kms/quickstart/.bazelrc b/google/cloud/kms/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/kms/quickstart/.bazelrc +++ b/google/cloud/kms/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/kms/quickstart/CMakeLists.txt b/google/cloud/kms/quickstart/CMakeLists.txt index c2cca2b625454..0efa650f1b0c5 100644 --- a/google/cloud/kms/quickstart/CMakeLists.txt +++ b/google/cloud/kms/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-kms-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_kms REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/kms/quickstart/Makefile b/google/cloud/kms/quickstart/Makefile index 281d308d3cd8a..7d7a53e808c3b 100644 --- a/google/cloud/kms/quickstart/Makefile +++ b/google/cloud/kms/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/language/quickstart/.bazelrc b/google/cloud/language/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/language/quickstart/.bazelrc +++ b/google/cloud/language/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/language/quickstart/CMakeLists.txt b/google/cloud/language/quickstart/CMakeLists.txt index 0055f8bfdddfc..76f094138ce25 100644 --- a/google/cloud/language/quickstart/CMakeLists.txt +++ b/google/cloud/language/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-language-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_language REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/language/quickstart/Makefile b/google/cloud/language/quickstart/Makefile index 9301542ff1838..a93ca3e263f3b 100644 --- a/google/cloud/language/quickstart/Makefile +++ b/google/cloud/language/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/licensemanager/quickstart/.bazelrc b/google/cloud/licensemanager/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/licensemanager/quickstart/.bazelrc +++ b/google/cloud/licensemanager/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/licensemanager/quickstart/CMakeLists.txt b/google/cloud/licensemanager/quickstart/CMakeLists.txt index a70e1ca00775a..d788b454228a0 100644 --- a/google/cloud/licensemanager/quickstart/CMakeLists.txt +++ b/google/cloud/licensemanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-licensemanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_licensemanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/licensemanager/quickstart/Makefile b/google/cloud/licensemanager/quickstart/Makefile index cf50f4d7fac11..d2fa7df68decd 100644 --- a/google/cloud/licensemanager/quickstart/Makefile +++ b/google/cloud/licensemanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/logging/quickstart/.bazelrc b/google/cloud/logging/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/logging/quickstart/.bazelrc +++ b/google/cloud/logging/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/logging/quickstart/CMakeLists.txt b/google/cloud/logging/quickstart/CMakeLists.txt index e57dd2e3f12e6..0dc83227e31de 100644 --- a/google/cloud/logging/quickstart/CMakeLists.txt +++ b/google/cloud/logging/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-logging-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_logging REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/logging/quickstart/Makefile b/google/cloud/logging/quickstart/Makefile index 9add65526b974..6f5dbea034ba0 100644 --- a/google/cloud/logging/quickstart/Makefile +++ b/google/cloud/logging/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/lustre/quickstart/.bazelrc b/google/cloud/lustre/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/lustre/quickstart/.bazelrc +++ b/google/cloud/lustre/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/lustre/quickstart/CMakeLists.txt b/google/cloud/lustre/quickstart/CMakeLists.txt index a1c6355a191f1..282bce9177b67 100644 --- a/google/cloud/lustre/quickstart/CMakeLists.txt +++ b/google/cloud/lustre/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-lustre-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_lustre REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/lustre/quickstart/Makefile b/google/cloud/lustre/quickstart/Makefile index 22d24401d1352..906f53e0142d7 100644 --- a/google/cloud/lustre/quickstart/Makefile +++ b/google/cloud/lustre/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/maintenance/quickstart/.bazelrc b/google/cloud/maintenance/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/maintenance/quickstart/.bazelrc +++ b/google/cloud/maintenance/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/maintenance/quickstart/CMakeLists.txt b/google/cloud/maintenance/quickstart/CMakeLists.txt index 61a2bf08c3d40..45ae3e8d29b15 100644 --- a/google/cloud/maintenance/quickstart/CMakeLists.txt +++ b/google/cloud/maintenance/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-maintenance-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_maintenance REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/maintenance/quickstart/Makefile b/google/cloud/maintenance/quickstart/Makefile index 1c8f9154457db..f4c56bf80dd3b 100644 --- a/google/cloud/maintenance/quickstart/Makefile +++ b/google/cloud/maintenance/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/managedidentities/quickstart/.bazelrc b/google/cloud/managedidentities/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/managedidentities/quickstart/.bazelrc +++ b/google/cloud/managedidentities/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/managedidentities/quickstart/CMakeLists.txt b/google/cloud/managedidentities/quickstart/CMakeLists.txt index 1266dcbed0d44..cac6090d41fd1 100644 --- a/google/cloud/managedidentities/quickstart/CMakeLists.txt +++ b/google/cloud/managedidentities/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-managedidentities-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_managedidentities REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/managedidentities/quickstart/Makefile b/google/cloud/managedidentities/quickstart/Makefile index 93cfc2d2c13a9..4445487d53b45 100644 --- a/google/cloud/managedidentities/quickstart/Makefile +++ b/google/cloud/managedidentities/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/managedkafka/quickstart/.bazelrc b/google/cloud/managedkafka/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/managedkafka/quickstart/.bazelrc +++ b/google/cloud/managedkafka/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/managedkafka/quickstart/CMakeLists.txt b/google/cloud/managedkafka/quickstart/CMakeLists.txt index 6a80ec93a10cd..570d33cea4ccb 100644 --- a/google/cloud/managedkafka/quickstart/CMakeLists.txt +++ b/google/cloud/managedkafka/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-managedkafka-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_managedkafka REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/managedkafka/quickstart/Makefile b/google/cloud/managedkafka/quickstart/Makefile index ea8ae74f56d77..ba2d433e48d98 100644 --- a/google/cloud/managedkafka/quickstart/Makefile +++ b/google/cloud/managedkafka/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/memcache/quickstart/.bazelrc b/google/cloud/memcache/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/memcache/quickstart/.bazelrc +++ b/google/cloud/memcache/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/memcache/quickstart/CMakeLists.txt b/google/cloud/memcache/quickstart/CMakeLists.txt index 27f283b724516..1dc88464189b6 100644 --- a/google/cloud/memcache/quickstart/CMakeLists.txt +++ b/google/cloud/memcache/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-memcache-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_memcache REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/memcache/quickstart/Makefile b/google/cloud/memcache/quickstart/Makefile index a0feafddad3aa..d3f942d3ab1af 100644 --- a/google/cloud/memcache/quickstart/Makefile +++ b/google/cloud/memcache/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/memorystore/quickstart/.bazelrc b/google/cloud/memorystore/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/memorystore/quickstart/.bazelrc +++ b/google/cloud/memorystore/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/memorystore/quickstart/CMakeLists.txt b/google/cloud/memorystore/quickstart/CMakeLists.txt index 00cf99edc112d..17c08e380501f 100644 --- a/google/cloud/memorystore/quickstart/CMakeLists.txt +++ b/google/cloud/memorystore/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-memorystore-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_memorystore REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/memorystore/quickstart/Makefile b/google/cloud/memorystore/quickstart/Makefile index 4b124e3c43970..7e97dff3b3f95 100644 --- a/google/cloud/memorystore/quickstart/Makefile +++ b/google/cloud/memorystore/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/metastore/quickstart/.bazelrc b/google/cloud/metastore/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/metastore/quickstart/.bazelrc +++ b/google/cloud/metastore/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/metastore/quickstart/CMakeLists.txt b/google/cloud/metastore/quickstart/CMakeLists.txt index 64199d20800fb..9ca2c1d0fe517 100644 --- a/google/cloud/metastore/quickstart/CMakeLists.txt +++ b/google/cloud/metastore/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-metastore-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_metastore REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/metastore/quickstart/Makefile b/google/cloud/metastore/quickstart/Makefile index 29c6ff8354591..dac1d198e44ef 100644 --- a/google/cloud/metastore/quickstart/Makefile +++ b/google/cloud/metastore/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/migrationcenter/quickstart/.bazelrc b/google/cloud/migrationcenter/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/migrationcenter/quickstart/.bazelrc +++ b/google/cloud/migrationcenter/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/migrationcenter/quickstart/CMakeLists.txt b/google/cloud/migrationcenter/quickstart/CMakeLists.txt index 7ce7231c0d687..3243c8cae9888 100644 --- a/google/cloud/migrationcenter/quickstart/CMakeLists.txt +++ b/google/cloud/migrationcenter/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-migrationcenter-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_migrationcenter REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/migrationcenter/quickstart/Makefile b/google/cloud/migrationcenter/quickstart/Makefile index cce6bedb66ff4..10868b12d120c 100644 --- a/google/cloud/migrationcenter/quickstart/Makefile +++ b/google/cloud/migrationcenter/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/monitoring/quickstart/.bazelrc b/google/cloud/monitoring/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/monitoring/quickstart/.bazelrc +++ b/google/cloud/monitoring/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/monitoring/quickstart/CMakeLists.txt b/google/cloud/monitoring/quickstart/CMakeLists.txt index 75213700abdf7..621659b7967c0 100644 --- a/google/cloud/monitoring/quickstart/CMakeLists.txt +++ b/google/cloud/monitoring/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-monitoring-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_monitoring REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/monitoring/quickstart/Makefile b/google/cloud/monitoring/quickstart/Makefile index 1c3ac2d50e8cb..2ceba357f5310 100644 --- a/google/cloud/monitoring/quickstart/Makefile +++ b/google/cloud/monitoring/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/netapp/quickstart/.bazelrc b/google/cloud/netapp/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/netapp/quickstart/.bazelrc +++ b/google/cloud/netapp/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/netapp/quickstart/CMakeLists.txt b/google/cloud/netapp/quickstart/CMakeLists.txt index 46fbd6cb13c4d..5e863c30bcc48 100644 --- a/google/cloud/netapp/quickstart/CMakeLists.txt +++ b/google/cloud/netapp/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-netapp-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_netapp REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/netapp/quickstart/Makefile b/google/cloud/netapp/quickstart/Makefile index 468f3c2d63f16..d26675ecd8cdc 100644 --- a/google/cloud/netapp/quickstart/Makefile +++ b/google/cloud/netapp/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/networkconnectivity/quickstart/.bazelrc b/google/cloud/networkconnectivity/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/networkconnectivity/quickstart/.bazelrc +++ b/google/cloud/networkconnectivity/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/networkconnectivity/quickstart/CMakeLists.txt b/google/cloud/networkconnectivity/quickstart/CMakeLists.txt index ee06fee9fb9f8..6b8e0a4a303bb 100644 --- a/google/cloud/networkconnectivity/quickstart/CMakeLists.txt +++ b/google/cloud/networkconnectivity/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-networkconnectivity-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_networkconnectivity REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/networkconnectivity/quickstart/Makefile b/google/cloud/networkconnectivity/quickstart/Makefile index d015aca615ee8..a8bb56d69ad3a 100644 --- a/google/cloud/networkconnectivity/quickstart/Makefile +++ b/google/cloud/networkconnectivity/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/networkmanagement/quickstart/.bazelrc b/google/cloud/networkmanagement/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/networkmanagement/quickstart/.bazelrc +++ b/google/cloud/networkmanagement/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/networkmanagement/quickstart/CMakeLists.txt b/google/cloud/networkmanagement/quickstart/CMakeLists.txt index 517cad6e1efd6..e1b5e35327363 100644 --- a/google/cloud/networkmanagement/quickstart/CMakeLists.txt +++ b/google/cloud/networkmanagement/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-networkmanagement-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_networkmanagement REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/networkmanagement/quickstart/Makefile b/google/cloud/networkmanagement/quickstart/Makefile index e6fd451f369b9..d293d90a98c98 100644 --- a/google/cloud/networkmanagement/quickstart/Makefile +++ b/google/cloud/networkmanagement/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/networksecurity/quickstart/.bazelrc b/google/cloud/networksecurity/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/networksecurity/quickstart/.bazelrc +++ b/google/cloud/networksecurity/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/networksecurity/quickstart/CMakeLists.txt b/google/cloud/networksecurity/quickstart/CMakeLists.txt index f1bf85e3080dc..18fc4f94967c4 100644 --- a/google/cloud/networksecurity/quickstart/CMakeLists.txt +++ b/google/cloud/networksecurity/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-networksecurity-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_networksecurity REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/networksecurity/quickstart/Makefile b/google/cloud/networksecurity/quickstart/Makefile index fdd47b5e55b75..2ae334d25716d 100644 --- a/google/cloud/networksecurity/quickstart/Makefile +++ b/google/cloud/networksecurity/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/networkservices/quickstart/.bazelrc b/google/cloud/networkservices/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/networkservices/quickstart/.bazelrc +++ b/google/cloud/networkservices/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/networkservices/quickstart/CMakeLists.txt b/google/cloud/networkservices/quickstart/CMakeLists.txt index 8fb1e1adb091f..25aa2c3768f3c 100644 --- a/google/cloud/networkservices/quickstart/CMakeLists.txt +++ b/google/cloud/networkservices/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-networkservices-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_networkservices REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/networkservices/quickstart/Makefile b/google/cloud/networkservices/quickstart/Makefile index bc0662c2b31dc..2121239e578c1 100644 --- a/google/cloud/networkservices/quickstart/Makefile +++ b/google/cloud/networkservices/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/notebooks/quickstart/.bazelrc b/google/cloud/notebooks/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/notebooks/quickstart/.bazelrc +++ b/google/cloud/notebooks/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/notebooks/quickstart/CMakeLists.txt b/google/cloud/notebooks/quickstart/CMakeLists.txt index 558ce73793a6c..77c1ccb1e79bf 100644 --- a/google/cloud/notebooks/quickstart/CMakeLists.txt +++ b/google/cloud/notebooks/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-notebooks-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_notebooks REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/notebooks/quickstart/Makefile b/google/cloud/notebooks/quickstart/Makefile index a2e905f04d091..7d1d77d149b8e 100644 --- a/google/cloud/notebooks/quickstart/Makefile +++ b/google/cloud/notebooks/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/oauth2/quickstart/CMakeLists.txt b/google/cloud/oauth2/quickstart/CMakeLists.txt index ba89f75dee204..eb80fc778e834 100644 --- a/google/cloud/oauth2/quickstart/CMakeLists.txt +++ b/google/cloud/oauth2/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-oauth2-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_oauth2 REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/oauth2/quickstart/Makefile b/google/cloud/oauth2/quickstart/Makefile index 156353c5f0268..e3492c8ce12cd 100644 --- a/google/cloud/oauth2/quickstart/Makefile +++ b/google/cloud/oauth2/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/opentelemetry/quickstart/.bazelrc b/google/cloud/opentelemetry/quickstart/.bazelrc index c8de5504a2d7d..4bc8f77a4fdd0 100644 --- a/google/cloud/opentelemetry/quickstart/.bazelrc +++ b/google/cloud/opentelemetry/quickstart/.bazelrc @@ -15,9 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/opentelemetry/quickstart/CMakeLists.txt b/google/cloud/opentelemetry/quickstart/CMakeLists.txt index 940a37947e94c..c8d33d3416b54 100644 --- a/google/cloud/opentelemetry/quickstart/CMakeLists.txt +++ b/google/cloud/opentelemetry/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-opentelemetry-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_storage REQUIRED) find_package(google_cloud_cpp_opentelemetry REQUIRED) diff --git a/google/cloud/opentelemetry/quickstart/Makefile b/google/cloud/opentelemetry/quickstart/Makefile index 88dd5862fbcf2..c3f04baeda064 100644 --- a/google/cloud/opentelemetry/quickstart/Makefile +++ b/google/cloud/opentelemetry/quickstart/Makefile @@ -19,7 +19,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/optimization/quickstart/.bazelrc b/google/cloud/optimization/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/optimization/quickstart/.bazelrc +++ b/google/cloud/optimization/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/optimization/quickstart/CMakeLists.txt b/google/cloud/optimization/quickstart/CMakeLists.txt index abe47a385b92b..b785e1c1ecfef 100644 --- a/google/cloud/optimization/quickstart/CMakeLists.txt +++ b/google/cloud/optimization/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-optimization-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_optimization REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/optimization/quickstart/Makefile b/google/cloud/optimization/quickstart/Makefile index 7c098b1cc74fd..a678a5ccc66bb 100644 --- a/google/cloud/optimization/quickstart/Makefile +++ b/google/cloud/optimization/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/oracledatabase/quickstart/.bazelrc b/google/cloud/oracledatabase/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/oracledatabase/quickstart/.bazelrc +++ b/google/cloud/oracledatabase/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/oracledatabase/quickstart/CMakeLists.txt b/google/cloud/oracledatabase/quickstart/CMakeLists.txt index 317d9a15c461e..d13f58798d478 100644 --- a/google/cloud/oracledatabase/quickstart/CMakeLists.txt +++ b/google/cloud/oracledatabase/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-oracledatabase-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_oracledatabase REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/oracledatabase/quickstart/Makefile b/google/cloud/oracledatabase/quickstart/Makefile index d092ee0c1ac78..b3ade6d7bd5af 100644 --- a/google/cloud/oracledatabase/quickstart/Makefile +++ b/google/cloud/oracledatabase/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/orgpolicy/quickstart/.bazelrc b/google/cloud/orgpolicy/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/orgpolicy/quickstart/.bazelrc +++ b/google/cloud/orgpolicy/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/orgpolicy/quickstart/CMakeLists.txt b/google/cloud/orgpolicy/quickstart/CMakeLists.txt index 6c1b0ce6e560c..d1584058b1f24 100644 --- a/google/cloud/orgpolicy/quickstart/CMakeLists.txt +++ b/google/cloud/orgpolicy/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-orgpolicy-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_orgpolicy REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/orgpolicy/quickstart/Makefile b/google/cloud/orgpolicy/quickstart/Makefile index 061e37f0b6b57..bb141ebaa33ca 100644 --- a/google/cloud/orgpolicy/quickstart/Makefile +++ b/google/cloud/orgpolicy/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/osconfig/quickstart/.bazelrc b/google/cloud/osconfig/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/osconfig/quickstart/.bazelrc +++ b/google/cloud/osconfig/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/osconfig/quickstart/CMakeLists.txt b/google/cloud/osconfig/quickstart/CMakeLists.txt index 00fbef0c3a5f8..62f67c3417324 100644 --- a/google/cloud/osconfig/quickstart/CMakeLists.txt +++ b/google/cloud/osconfig/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-osconfig-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_osconfig REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/osconfig/quickstart/Makefile b/google/cloud/osconfig/quickstart/Makefile index 8fa4f4592311b..2727b87ba2e44 100644 --- a/google/cloud/osconfig/quickstart/Makefile +++ b/google/cloud/osconfig/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/oslogin/quickstart/.bazelrc b/google/cloud/oslogin/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/oslogin/quickstart/.bazelrc +++ b/google/cloud/oslogin/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/oslogin/quickstart/CMakeLists.txt b/google/cloud/oslogin/quickstart/CMakeLists.txt index 3fa40fdb32093..65e5a92805e82 100644 --- a/google/cloud/oslogin/quickstart/CMakeLists.txt +++ b/google/cloud/oslogin/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-oslogin-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_oslogin REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/oslogin/quickstart/Makefile b/google/cloud/oslogin/quickstart/Makefile index 78c01220d7103..84b79f387946c 100644 --- a/google/cloud/oslogin/quickstart/Makefile +++ b/google/cloud/oslogin/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/parallelstore/quickstart/.bazelrc b/google/cloud/parallelstore/quickstart/.bazelrc index d313ebed860ce..43034ebced876 100644 --- a/google/cloud/parallelstore/quickstart/.bazelrc +++ b/google/cloud/parallelstore/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/parallelstore/quickstart/CMakeLists.txt b/google/cloud/parallelstore/quickstart/CMakeLists.txt index aa9ebf812dde7..03a0f94eef5b2 100644 --- a/google/cloud/parallelstore/quickstart/CMakeLists.txt +++ b/google/cloud/parallelstore/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-parallelstore-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_parallelstore REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/parallelstore/quickstart/Makefile b/google/cloud/parallelstore/quickstart/Makefile index db2b39039ed99..4256947718d89 100644 --- a/google/cloud/parallelstore/quickstart/Makefile +++ b/google/cloud/parallelstore/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/parametermanager/quickstart/.bazelrc b/google/cloud/parametermanager/quickstart/.bazelrc index e8b43211481f4..4e5590bdc2093 100644 --- a/google/cloud/parametermanager/quickstart/.bazelrc +++ b/google/cloud/parametermanager/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/parametermanager/quickstart/CMakeLists.txt b/google/cloud/parametermanager/quickstart/CMakeLists.txt index 6719a7c42af2f..0f412ea977a9a 100644 --- a/google/cloud/parametermanager/quickstart/CMakeLists.txt +++ b/google/cloud/parametermanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-parametermanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_parametermanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/parametermanager/quickstart/Makefile b/google/cloud/parametermanager/quickstart/Makefile index 1e235e1d78593..4ec4f911b7c21 100644 --- a/google/cloud/parametermanager/quickstart/Makefile +++ b/google/cloud/parametermanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/policysimulator/quickstart/.bazelrc b/google/cloud/policysimulator/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/policysimulator/quickstart/.bazelrc +++ b/google/cloud/policysimulator/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/policysimulator/quickstart/CMakeLists.txt b/google/cloud/policysimulator/quickstart/CMakeLists.txt index e40a33e23ed7a..d39f94d26237c 100644 --- a/google/cloud/policysimulator/quickstart/CMakeLists.txt +++ b/google/cloud/policysimulator/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-policysimulator-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_policysimulator REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/policysimulator/quickstart/Makefile b/google/cloud/policysimulator/quickstart/Makefile index f5496a62ea5a5..7ffd0be1d1847 100644 --- a/google/cloud/policysimulator/quickstart/Makefile +++ b/google/cloud/policysimulator/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/policytroubleshooter/quickstart/.bazelrc b/google/cloud/policytroubleshooter/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/policytroubleshooter/quickstart/.bazelrc +++ b/google/cloud/policytroubleshooter/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/policytroubleshooter/quickstart/CMakeLists.txt b/google/cloud/policytroubleshooter/quickstart/CMakeLists.txt index eede43be58dc4..cc632ad928944 100644 --- a/google/cloud/policytroubleshooter/quickstart/CMakeLists.txt +++ b/google/cloud/policytroubleshooter/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-policytroubleshooter-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_policytroubleshooter REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/policytroubleshooter/quickstart/Makefile b/google/cloud/policytroubleshooter/quickstart/Makefile index 3ce5d15e4a68b..12c459cc1d77d 100644 --- a/google/cloud/policytroubleshooter/quickstart/Makefile +++ b/google/cloud/policytroubleshooter/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/privateca/quickstart/.bazelrc b/google/cloud/privateca/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/privateca/quickstart/.bazelrc +++ b/google/cloud/privateca/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/privateca/quickstart/CMakeLists.txt b/google/cloud/privateca/quickstart/CMakeLists.txt index 9ddfb6803b742..5020abc0cc35d 100644 --- a/google/cloud/privateca/quickstart/CMakeLists.txt +++ b/google/cloud/privateca/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-privateca-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_privateca REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/privateca/quickstart/Makefile b/google/cloud/privateca/quickstart/Makefile index 1a041be223f50..ec196ffbee72d 100644 --- a/google/cloud/privateca/quickstart/Makefile +++ b/google/cloud/privateca/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/privilegedaccessmanager/quickstart/.bazelrc b/google/cloud/privilegedaccessmanager/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/privilegedaccessmanager/quickstart/.bazelrc +++ b/google/cloud/privilegedaccessmanager/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/privilegedaccessmanager/quickstart/CMakeLists.txt b/google/cloud/privilegedaccessmanager/quickstart/CMakeLists.txt index 2f5341ac9f9e2..a4c1dc1aa7432 100644 --- a/google/cloud/privilegedaccessmanager/quickstart/CMakeLists.txt +++ b/google/cloud/privilegedaccessmanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-privilegedaccessmanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_privilegedaccessmanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/privilegedaccessmanager/quickstart/Makefile b/google/cloud/privilegedaccessmanager/quickstart/Makefile index 8433266c991a1..ffed4cce3585e 100644 --- a/google/cloud/privilegedaccessmanager/quickstart/Makefile +++ b/google/cloud/privilegedaccessmanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/profiler/quickstart/.bazelrc b/google/cloud/profiler/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/profiler/quickstart/.bazelrc +++ b/google/cloud/profiler/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/profiler/quickstart/CMakeLists.txt b/google/cloud/profiler/quickstart/CMakeLists.txt index cc74d2c53593c..82f6aac95de3b 100644 --- a/google/cloud/profiler/quickstart/CMakeLists.txt +++ b/google/cloud/profiler/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-profiler-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_profiler REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/profiler/quickstart/Makefile b/google/cloud/profiler/quickstart/Makefile index 178f08acf240c..ddf289d72cca7 100644 --- a/google/cloud/profiler/quickstart/Makefile +++ b/google/cloud/profiler/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/publicca/quickstart/.bazelrc b/google/cloud/publicca/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/publicca/quickstart/.bazelrc +++ b/google/cloud/publicca/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/publicca/quickstart/CMakeLists.txt b/google/cloud/publicca/quickstart/CMakeLists.txt index 332158795383f..f93154e0d93d4 100644 --- a/google/cloud/publicca/quickstart/CMakeLists.txt +++ b/google/cloud/publicca/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-publicca-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_publicca REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/publicca/quickstart/Makefile b/google/cloud/publicca/quickstart/Makefile index a258aa38bde0b..1696e2b720fbc 100644 --- a/google/cloud/publicca/quickstart/Makefile +++ b/google/cloud/publicca/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/pubsub/quickstart/.bazelrc b/google/cloud/pubsub/quickstart/.bazelrc index 1ccef142904e8..3112a8ec55f89 100644 --- a/google/cloud/pubsub/quickstart/.bazelrc +++ b/google/cloud/pubsub/quickstart/.bazelrc @@ -15,8 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/pubsub/quickstart/CMakeLists.txt b/google/cloud/pubsub/quickstart/CMakeLists.txt index 1c19460093539..3afdf50aa4c02 100644 --- a/google/cloud/pubsub/quickstart/CMakeLists.txt +++ b/google/cloud/pubsub/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-pubsub-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_pubsub REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/pubsub/quickstart/Makefile b/google/cloud/pubsub/quickstart/Makefile index 71651d12303d9..88e6d5b738397 100644 --- a/google/cloud/pubsub/quickstart/Makefile +++ b/google/cloud/pubsub/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/pubsublite/quickstart/.bazelrc b/google/cloud/pubsublite/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/pubsublite/quickstart/.bazelrc +++ b/google/cloud/pubsublite/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/pubsublite/quickstart/CMakeLists.txt b/google/cloud/pubsublite/quickstart/CMakeLists.txt index 81eebb6df8089..76fbc1c2ffb6b 100644 --- a/google/cloud/pubsublite/quickstart/CMakeLists.txt +++ b/google/cloud/pubsublite/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-pubsublite-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_pubsublite REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/pubsublite/quickstart/Makefile b/google/cloud/pubsublite/quickstart/Makefile index 8a7553c6495f9..21b1df9886e79 100644 --- a/google/cloud/pubsublite/quickstart/Makefile +++ b/google/cloud/pubsublite/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/rapidmigrationassessment/quickstart/.bazelrc b/google/cloud/rapidmigrationassessment/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/rapidmigrationassessment/quickstart/.bazelrc +++ b/google/cloud/rapidmigrationassessment/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/rapidmigrationassessment/quickstart/CMakeLists.txt b/google/cloud/rapidmigrationassessment/quickstart/CMakeLists.txt index 985e2e1f836e6..713f02c509459 100644 --- a/google/cloud/rapidmigrationassessment/quickstart/CMakeLists.txt +++ b/google/cloud/rapidmigrationassessment/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-rapidmigrationassessment-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_rapidmigrationassessment REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/rapidmigrationassessment/quickstart/Makefile b/google/cloud/rapidmigrationassessment/quickstart/Makefile index 6e792a081093e..19c216f964c0c 100644 --- a/google/cloud/rapidmigrationassessment/quickstart/Makefile +++ b/google/cloud/rapidmigrationassessment/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/recaptchaenterprise/quickstart/.bazelrc b/google/cloud/recaptchaenterprise/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/recaptchaenterprise/quickstart/.bazelrc +++ b/google/cloud/recaptchaenterprise/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/recaptchaenterprise/quickstart/CMakeLists.txt b/google/cloud/recaptchaenterprise/quickstart/CMakeLists.txt index 4f3f51d2db33a..1299136b1469f 100644 --- a/google/cloud/recaptchaenterprise/quickstart/CMakeLists.txt +++ b/google/cloud/recaptchaenterprise/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-recaptchaenterprise-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_recaptchaenterprise REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/recaptchaenterprise/quickstart/Makefile b/google/cloud/recaptchaenterprise/quickstart/Makefile index 16a6e181bd007..98a1fea9b19bd 100644 --- a/google/cloud/recaptchaenterprise/quickstart/Makefile +++ b/google/cloud/recaptchaenterprise/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/recommender/quickstart/.bazelrc b/google/cloud/recommender/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/recommender/quickstart/.bazelrc +++ b/google/cloud/recommender/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/recommender/quickstart/CMakeLists.txt b/google/cloud/recommender/quickstart/CMakeLists.txt index 2e7a4053ebe29..c79edd2301481 100644 --- a/google/cloud/recommender/quickstart/CMakeLists.txt +++ b/google/cloud/recommender/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-recommender-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_recommender REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/recommender/quickstart/Makefile b/google/cloud/recommender/quickstart/Makefile index c39ced8326223..ddaf1f9c6b529 100644 --- a/google/cloud/recommender/quickstart/Makefile +++ b/google/cloud/recommender/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/redis/quickstart/.bazelrc b/google/cloud/redis/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/redis/quickstart/.bazelrc +++ b/google/cloud/redis/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/redis/quickstart/CMakeLists.txt b/google/cloud/redis/quickstart/CMakeLists.txt index c90374512b5de..b4b71d45a560b 100644 --- a/google/cloud/redis/quickstart/CMakeLists.txt +++ b/google/cloud/redis/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-redis-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_redis REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/redis/quickstart/Makefile b/google/cloud/redis/quickstart/Makefile index e805a0c52e3e1..cdf2fb0da1fbc 100644 --- a/google/cloud/redis/quickstart/Makefile +++ b/google/cloud/redis/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/resourcemanager/quickstart/.bazelrc b/google/cloud/resourcemanager/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/resourcemanager/quickstart/.bazelrc +++ b/google/cloud/resourcemanager/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/resourcemanager/quickstart/CMakeLists.txt b/google/cloud/resourcemanager/quickstart/CMakeLists.txt index 2128b6687ecd4..fd6cb8b1e477d 100644 --- a/google/cloud/resourcemanager/quickstart/CMakeLists.txt +++ b/google/cloud/resourcemanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-resourcemanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_resourcemanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/resourcemanager/quickstart/Makefile b/google/cloud/resourcemanager/quickstart/Makefile index 5a80a488bb459..674c42571b71a 100644 --- a/google/cloud/resourcemanager/quickstart/Makefile +++ b/google/cloud/resourcemanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/retail/quickstart/.bazelrc b/google/cloud/retail/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/retail/quickstart/.bazelrc +++ b/google/cloud/retail/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/retail/quickstart/CMakeLists.txt b/google/cloud/retail/quickstart/CMakeLists.txt index d4838aeb78cee..3bf2f96bf4fce 100644 --- a/google/cloud/retail/quickstart/CMakeLists.txt +++ b/google/cloud/retail/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-retail-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_retail REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/retail/quickstart/Makefile b/google/cloud/retail/quickstart/Makefile index 7e431448d52ce..26fcbc6b6f583 100644 --- a/google/cloud/retail/quickstart/Makefile +++ b/google/cloud/retail/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/run/quickstart/.bazelrc b/google/cloud/run/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/run/quickstart/.bazelrc +++ b/google/cloud/run/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/run/quickstart/CMakeLists.txt b/google/cloud/run/quickstart/CMakeLists.txt index c5b481e764084..faf9b9465d283 100644 --- a/google/cloud/run/quickstart/CMakeLists.txt +++ b/google/cloud/run/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-run-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_run REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/run/quickstart/Makefile b/google/cloud/run/quickstart/Makefile index e16df73ef98e1..3b0235f01b068 100644 --- a/google/cloud/run/quickstart/Makefile +++ b/google/cloud/run/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/scheduler/quickstart/.bazelrc b/google/cloud/scheduler/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/scheduler/quickstart/.bazelrc +++ b/google/cloud/scheduler/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/scheduler/quickstart/CMakeLists.txt b/google/cloud/scheduler/quickstart/CMakeLists.txt index d81e192252b7d..7f622bd5418c4 100644 --- a/google/cloud/scheduler/quickstart/CMakeLists.txt +++ b/google/cloud/scheduler/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-scheduler-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_scheduler REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/scheduler/quickstart/Makefile b/google/cloud/scheduler/quickstart/Makefile index 38c28947ebdaa..3e30df309a717 100644 --- a/google/cloud/scheduler/quickstart/Makefile +++ b/google/cloud/scheduler/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/secretmanager/quickstart/.bazelrc b/google/cloud/secretmanager/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/secretmanager/quickstart/.bazelrc +++ b/google/cloud/secretmanager/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/secretmanager/quickstart/CMakeLists.txt b/google/cloud/secretmanager/quickstart/CMakeLists.txt index 9b8e9c916561b..472b3a1013a23 100644 --- a/google/cloud/secretmanager/quickstart/CMakeLists.txt +++ b/google/cloud/secretmanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-secretmanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_secretmanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/secretmanager/quickstart/Makefile b/google/cloud/secretmanager/quickstart/Makefile index 1f4a06992d1b3..a95662f24482c 100644 --- a/google/cloud/secretmanager/quickstart/Makefile +++ b/google/cloud/secretmanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/securesourcemanager/quickstart/.bazelrc b/google/cloud/securesourcemanager/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/securesourcemanager/quickstart/.bazelrc +++ b/google/cloud/securesourcemanager/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/securesourcemanager/quickstart/CMakeLists.txt b/google/cloud/securesourcemanager/quickstart/CMakeLists.txt index b103f841aeb90..690a7488817ea 100644 --- a/google/cloud/securesourcemanager/quickstart/CMakeLists.txt +++ b/google/cloud/securesourcemanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-securesourcemanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_securesourcemanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/securesourcemanager/quickstart/Makefile b/google/cloud/securesourcemanager/quickstart/Makefile index a9aea3ca64a2d..3f52c544fe87f 100644 --- a/google/cloud/securesourcemanager/quickstart/Makefile +++ b/google/cloud/securesourcemanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/securitycenter/quickstart/.bazelrc b/google/cloud/securitycenter/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/securitycenter/quickstart/.bazelrc +++ b/google/cloud/securitycenter/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/securitycenter/quickstart/CMakeLists.txt b/google/cloud/securitycenter/quickstart/CMakeLists.txt index 4ac30d6d8d808..2145646bc900f 100644 --- a/google/cloud/securitycenter/quickstart/CMakeLists.txt +++ b/google/cloud/securitycenter/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-securitycenter-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_securitycenter REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/securitycenter/quickstart/Makefile b/google/cloud/securitycenter/quickstart/Makefile index 2546160a9ea06..28e5050403612 100644 --- a/google/cloud/securitycenter/quickstart/Makefile +++ b/google/cloud/securitycenter/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/securitycentermanagement/quickstart/.bazelrc b/google/cloud/securitycentermanagement/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/securitycentermanagement/quickstart/.bazelrc +++ b/google/cloud/securitycentermanagement/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/securitycentermanagement/quickstart/CMakeLists.txt b/google/cloud/securitycentermanagement/quickstart/CMakeLists.txt index b804894e2267c..01bc54042cb3e 100644 --- a/google/cloud/securitycentermanagement/quickstart/CMakeLists.txt +++ b/google/cloud/securitycentermanagement/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-securitycentermanagement-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_securitycentermanagement REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/securitycentermanagement/quickstart/Makefile b/google/cloud/securitycentermanagement/quickstart/Makefile index 607a134726959..f05e2073b3a6c 100644 --- a/google/cloud/securitycentermanagement/quickstart/Makefile +++ b/google/cloud/securitycentermanagement/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/servicecontrol/quickstart/.bazelrc b/google/cloud/servicecontrol/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/servicecontrol/quickstart/.bazelrc +++ b/google/cloud/servicecontrol/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/servicecontrol/quickstart/CMakeLists.txt b/google/cloud/servicecontrol/quickstart/CMakeLists.txt index a5262c538242e..47c10ce101c11 100644 --- a/google/cloud/servicecontrol/quickstart/CMakeLists.txt +++ b/google/cloud/servicecontrol/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-servicecontrol-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_servicecontrol REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/servicecontrol/quickstart/Makefile b/google/cloud/servicecontrol/quickstart/Makefile index 4c6d78d61d509..5724e22b39690 100644 --- a/google/cloud/servicecontrol/quickstart/Makefile +++ b/google/cloud/servicecontrol/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/servicedirectory/quickstart/.bazelrc b/google/cloud/servicedirectory/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/servicedirectory/quickstart/.bazelrc +++ b/google/cloud/servicedirectory/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/servicedirectory/quickstart/CMakeLists.txt b/google/cloud/servicedirectory/quickstart/CMakeLists.txt index 5410518a7a531..d0363619f82b6 100644 --- a/google/cloud/servicedirectory/quickstart/CMakeLists.txt +++ b/google/cloud/servicedirectory/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-servicedirectory-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_servicedirectory REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/servicedirectory/quickstart/Makefile b/google/cloud/servicedirectory/quickstart/Makefile index 9f0e1eac08353..fe5013b2070bb 100644 --- a/google/cloud/servicedirectory/quickstart/Makefile +++ b/google/cloud/servicedirectory/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/servicehealth/quickstart/.bazelrc b/google/cloud/servicehealth/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/servicehealth/quickstart/.bazelrc +++ b/google/cloud/servicehealth/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/servicehealth/quickstart/CMakeLists.txt b/google/cloud/servicehealth/quickstart/CMakeLists.txt index 5c114d9a2a029..161ab2fe7337b 100644 --- a/google/cloud/servicehealth/quickstart/CMakeLists.txt +++ b/google/cloud/servicehealth/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-servicehealth-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_servicehealth REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/servicehealth/quickstart/Makefile b/google/cloud/servicehealth/quickstart/Makefile index 560cca6ca0ebd..d146ca8d99856 100644 --- a/google/cloud/servicehealth/quickstart/Makefile +++ b/google/cloud/servicehealth/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/servicemanagement/quickstart/.bazelrc b/google/cloud/servicemanagement/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/servicemanagement/quickstart/.bazelrc +++ b/google/cloud/servicemanagement/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/servicemanagement/quickstart/CMakeLists.txt b/google/cloud/servicemanagement/quickstart/CMakeLists.txt index 208616e369847..934257ab12702 100644 --- a/google/cloud/servicemanagement/quickstart/CMakeLists.txt +++ b/google/cloud/servicemanagement/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-servicemanagement-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_servicemanagement REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/servicemanagement/quickstart/Makefile b/google/cloud/servicemanagement/quickstart/Makefile index 3271461712ed6..789d033c2668c 100644 --- a/google/cloud/servicemanagement/quickstart/Makefile +++ b/google/cloud/servicemanagement/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/serviceusage/quickstart/.bazelrc b/google/cloud/serviceusage/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/serviceusage/quickstart/.bazelrc +++ b/google/cloud/serviceusage/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/serviceusage/quickstart/CMakeLists.txt b/google/cloud/serviceusage/quickstart/CMakeLists.txt index 5709906c42f89..d1dac77b3b0f7 100644 --- a/google/cloud/serviceusage/quickstart/CMakeLists.txt +++ b/google/cloud/serviceusage/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-serviceusage-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_serviceusage REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/serviceusage/quickstart/Makefile b/google/cloud/serviceusage/quickstart/Makefile index 263ffe1483567..adc39e54bc589 100644 --- a/google/cloud/serviceusage/quickstart/Makefile +++ b/google/cloud/serviceusage/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/shell/quickstart/.bazelrc b/google/cloud/shell/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/shell/quickstart/.bazelrc +++ b/google/cloud/shell/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/shell/quickstart/CMakeLists.txt b/google/cloud/shell/quickstart/CMakeLists.txt index 0d7baa82ba0e5..7fc5bf6b585ff 100644 --- a/google/cloud/shell/quickstart/CMakeLists.txt +++ b/google/cloud/shell/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-shell-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_shell REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/shell/quickstart/Makefile b/google/cloud/shell/quickstart/Makefile index 50a398712cc1c..85d676fe1d4af 100644 --- a/google/cloud/shell/quickstart/Makefile +++ b/google/cloud/shell/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/spanner/quickstart/.bazelrc b/google/cloud/spanner/quickstart/.bazelrc index 1ccef142904e8..3112a8ec55f89 100644 --- a/google/cloud/spanner/quickstart/.bazelrc +++ b/google/cloud/spanner/quickstart/.bazelrc @@ -15,8 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/spanner/quickstart/CMakeLists.txt b/google/cloud/spanner/quickstart/CMakeLists.txt index b4df11cba8859..64339c41f3dc4 100644 --- a/google/cloud/spanner/quickstart/CMakeLists.txt +++ b/google/cloud/spanner/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-spanner-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_spanner REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/spanner/quickstart/Makefile b/google/cloud/spanner/quickstart/Makefile index 30f3619b2a2b8..3e14921709367 100644 --- a/google/cloud/spanner/quickstart/Makefile +++ b/google/cloud/spanner/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/speech/quickstart/.bazelrc b/google/cloud/speech/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/speech/quickstart/.bazelrc +++ b/google/cloud/speech/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/speech/quickstart/CMakeLists.txt b/google/cloud/speech/quickstart/CMakeLists.txt index e6d304bf1a678..6c83af181f727 100644 --- a/google/cloud/speech/quickstart/CMakeLists.txt +++ b/google/cloud/speech/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-speech-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_speech REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/speech/quickstart/Makefile b/google/cloud/speech/quickstart/Makefile index bdabe82a240da..71672f7a2b176 100644 --- a/google/cloud/speech/quickstart/Makefile +++ b/google/cloud/speech/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/sql/quickstart/.bazelrc b/google/cloud/sql/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/sql/quickstart/.bazelrc +++ b/google/cloud/sql/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/sql/quickstart/CMakeLists.txt b/google/cloud/sql/quickstart/CMakeLists.txt index 9ce7962b349f1..e4a6d0507d7be 100644 --- a/google/cloud/sql/quickstart/CMakeLists.txt +++ b/google/cloud/sql/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-sql-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_sql REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/sql/quickstart/Makefile b/google/cloud/sql/quickstart/Makefile index fa9ce15f2e5c5..a7d8edd905162 100644 --- a/google/cloud/sql/quickstart/Makefile +++ b/google/cloud/sql/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/storage/quickstart/.bazelrc b/google/cloud/storage/quickstart/.bazelrc index 1ccef142904e8..3112a8ec55f89 100644 --- a/google/cloud/storage/quickstart/.bazelrc +++ b/google/cloud/storage/quickstart/.bazelrc @@ -15,8 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/storage/quickstart/CMakeLists.txt b/google/cloud/storage/quickstart/CMakeLists.txt index 9eaac7221d702..d64bcf79907a5 100644 --- a/google/cloud/storage/quickstart/CMakeLists.txt +++ b/google/cloud/storage/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-storage-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_storage REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/storage/quickstart/Makefile b/google/cloud/storage/quickstart/Makefile index 311a9be520753..f241e1134160b 100644 --- a/google/cloud/storage/quickstart/Makefile +++ b/google/cloud/storage/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/storagebatchoperations/quickstart/.bazelrc b/google/cloud/storagebatchoperations/quickstart/.bazelrc index 8431873b6fcba..4e5590bdc2093 100644 --- a/google/cloud/storagebatchoperations/quickstart/.bazelrc +++ b/google/cloud/storagebatchoperations/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/storagebatchoperations/quickstart/CMakeLists.txt b/google/cloud/storagebatchoperations/quickstart/CMakeLists.txt index 0b897b94620ca..378e5048eb53b 100644 --- a/google/cloud/storagebatchoperations/quickstart/CMakeLists.txt +++ b/google/cloud/storagebatchoperations/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-storagebatchoperations-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_storagebatchoperations REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/storagebatchoperations/quickstart/Makefile b/google/cloud/storagebatchoperations/quickstart/Makefile index 6c48f42fd4ed4..37f2e8f8af1fe 100644 --- a/google/cloud/storagebatchoperations/quickstart/Makefile +++ b/google/cloud/storagebatchoperations/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/storagecontrol/quickstart/.bazelrc b/google/cloud/storagecontrol/quickstart/.bazelrc index 343e7f623d628..c3fca469d0a5c 100644 --- a/google/cloud/storagecontrol/quickstart/.bazelrc +++ b/google/cloud/storagecontrol/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/storagecontrol/quickstart/CMakeLists.txt b/google/cloud/storagecontrol/quickstart/CMakeLists.txt index f8e1c29b8b56c..6d836d2584134 100644 --- a/google/cloud/storagecontrol/quickstart/CMakeLists.txt +++ b/google/cloud/storagecontrol/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-storagecontrol-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_storagecontrol REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/storagecontrol/quickstart/Makefile b/google/cloud/storagecontrol/quickstart/Makefile index 2f80e24f65bf9..07245b7f00f28 100644 --- a/google/cloud/storagecontrol/quickstart/Makefile +++ b/google/cloud/storagecontrol/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/storageinsights/quickstart/.bazelrc b/google/cloud/storageinsights/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/storageinsights/quickstart/.bazelrc +++ b/google/cloud/storageinsights/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/storageinsights/quickstart/CMakeLists.txt b/google/cloud/storageinsights/quickstart/CMakeLists.txt index c3b1ff61380bd..c9304db5d34cb 100644 --- a/google/cloud/storageinsights/quickstart/CMakeLists.txt +++ b/google/cloud/storageinsights/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-storageinsights-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_storageinsights REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/storageinsights/quickstart/Makefile b/google/cloud/storageinsights/quickstart/Makefile index 2ec95dac38caf..1727cf64ccde2 100644 --- a/google/cloud/storageinsights/quickstart/Makefile +++ b/google/cloud/storageinsights/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/storagetransfer/quickstart/.bazelrc b/google/cloud/storagetransfer/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/storagetransfer/quickstart/.bazelrc +++ b/google/cloud/storagetransfer/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/storagetransfer/quickstart/CMakeLists.txt b/google/cloud/storagetransfer/quickstart/CMakeLists.txt index 09fce9fb82085..b3320e3a2eeca 100644 --- a/google/cloud/storagetransfer/quickstart/CMakeLists.txt +++ b/google/cloud/storagetransfer/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-storagetransfer-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_storagetransfer REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/storagetransfer/quickstart/Makefile b/google/cloud/storagetransfer/quickstart/Makefile index be6ae6a93b686..09c1b27f37197 100644 --- a/google/cloud/storagetransfer/quickstart/Makefile +++ b/google/cloud/storagetransfer/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/support/quickstart/.bazelrc b/google/cloud/support/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/support/quickstart/.bazelrc +++ b/google/cloud/support/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/support/quickstart/CMakeLists.txt b/google/cloud/support/quickstart/CMakeLists.txt index 1a63c684b1c49..9f7528dd1a0cd 100644 --- a/google/cloud/support/quickstart/CMakeLists.txt +++ b/google/cloud/support/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-support-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_support REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/support/quickstart/Makefile b/google/cloud/support/quickstart/Makefile index 82cb7f4e1eb95..bdf41db515f2e 100644 --- a/google/cloud/support/quickstart/Makefile +++ b/google/cloud/support/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/talent/quickstart/.bazelrc b/google/cloud/talent/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/talent/quickstart/.bazelrc +++ b/google/cloud/talent/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/talent/quickstart/CMakeLists.txt b/google/cloud/talent/quickstart/CMakeLists.txt index d476189daaad2..3774d99b350fd 100644 --- a/google/cloud/talent/quickstart/CMakeLists.txt +++ b/google/cloud/talent/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-talent-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_talent REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/talent/quickstart/Makefile b/google/cloud/talent/quickstart/Makefile index fc00c5cd1fb35..c63c720fa257f 100644 --- a/google/cloud/talent/quickstart/Makefile +++ b/google/cloud/talent/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/tasks/quickstart/.bazelrc b/google/cloud/tasks/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/tasks/quickstart/.bazelrc +++ b/google/cloud/tasks/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/tasks/quickstart/CMakeLists.txt b/google/cloud/tasks/quickstart/CMakeLists.txt index 4ea48a47580b2..20c8bbc481ced 100644 --- a/google/cloud/tasks/quickstart/CMakeLists.txt +++ b/google/cloud/tasks/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-tasks-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_tasks REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/tasks/quickstart/Makefile b/google/cloud/tasks/quickstart/Makefile index c4ad21dcfa7f1..424e7a91a0a3f 100644 --- a/google/cloud/tasks/quickstart/Makefile +++ b/google/cloud/tasks/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/telcoautomation/quickstart/.bazelrc b/google/cloud/telcoautomation/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/telcoautomation/quickstart/.bazelrc +++ b/google/cloud/telcoautomation/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/telcoautomation/quickstart/CMakeLists.txt b/google/cloud/telcoautomation/quickstart/CMakeLists.txt index abbfbc549d9eb..7eb5c23e54a7b 100644 --- a/google/cloud/telcoautomation/quickstart/CMakeLists.txt +++ b/google/cloud/telcoautomation/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-telcoautomation-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_telcoautomation REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/telcoautomation/quickstart/Makefile b/google/cloud/telcoautomation/quickstart/Makefile index 0e89b444eff96..e8596a43cbff6 100644 --- a/google/cloud/telcoautomation/quickstart/Makefile +++ b/google/cloud/telcoautomation/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/texttospeech/quickstart/.bazelrc b/google/cloud/texttospeech/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/texttospeech/quickstart/.bazelrc +++ b/google/cloud/texttospeech/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/texttospeech/quickstart/CMakeLists.txt b/google/cloud/texttospeech/quickstart/CMakeLists.txt index fac3d39b81942..3ebc1214dcb9c 100644 --- a/google/cloud/texttospeech/quickstart/CMakeLists.txt +++ b/google/cloud/texttospeech/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-texttospeech-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_texttospeech REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/texttospeech/quickstart/Makefile b/google/cloud/texttospeech/quickstart/Makefile index bdbe93f145e57..e041dbd449523 100644 --- a/google/cloud/texttospeech/quickstart/Makefile +++ b/google/cloud/texttospeech/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/timeseriesinsights/quickstart/.bazelrc b/google/cloud/timeseriesinsights/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/timeseriesinsights/quickstart/.bazelrc +++ b/google/cloud/timeseriesinsights/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/timeseriesinsights/quickstart/CMakeLists.txt b/google/cloud/timeseriesinsights/quickstart/CMakeLists.txt index 4a60c6fdd0bce..fabc16df26171 100644 --- a/google/cloud/timeseriesinsights/quickstart/CMakeLists.txt +++ b/google/cloud/timeseriesinsights/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-timeseriesinsights-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_timeseriesinsights REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/timeseriesinsights/quickstart/Makefile b/google/cloud/timeseriesinsights/quickstart/Makefile index 66b7354e60c49..c46260990ee5f 100644 --- a/google/cloud/timeseriesinsights/quickstart/Makefile +++ b/google/cloud/timeseriesinsights/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/tpu/quickstart/.bazelrc b/google/cloud/tpu/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/tpu/quickstart/.bazelrc +++ b/google/cloud/tpu/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/tpu/quickstart/CMakeLists.txt b/google/cloud/tpu/quickstart/CMakeLists.txt index 0234ec0214f2f..4cbef5410718d 100644 --- a/google/cloud/tpu/quickstart/CMakeLists.txt +++ b/google/cloud/tpu/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-tpu-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_tpu REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/tpu/quickstart/Makefile b/google/cloud/tpu/quickstart/Makefile index 424dde3e47aea..2de322aa992fd 100644 --- a/google/cloud/tpu/quickstart/Makefile +++ b/google/cloud/tpu/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/trace/quickstart/.bazelrc b/google/cloud/trace/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/trace/quickstart/.bazelrc +++ b/google/cloud/trace/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/trace/quickstart/CMakeLists.txt b/google/cloud/trace/quickstart/CMakeLists.txt index 74001c0668741..690c735d0c43a 100644 --- a/google/cloud/trace/quickstart/CMakeLists.txt +++ b/google/cloud/trace/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-trace-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_trace REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/trace/quickstart/Makefile b/google/cloud/trace/quickstart/Makefile index d297c492601de..3ffd7a20758db 100644 --- a/google/cloud/trace/quickstart/Makefile +++ b/google/cloud/trace/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/translate/quickstart/.bazelrc b/google/cloud/translate/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/translate/quickstart/.bazelrc +++ b/google/cloud/translate/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/translate/quickstart/CMakeLists.txt b/google/cloud/translate/quickstart/CMakeLists.txt index 75bdd8ed7dd8a..9e3442728d57e 100644 --- a/google/cloud/translate/quickstart/CMakeLists.txt +++ b/google/cloud/translate/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-translate-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_translate REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/translate/quickstart/Makefile b/google/cloud/translate/quickstart/Makefile index c60765c00b2ff..d67a07037593a 100644 --- a/google/cloud/translate/quickstart/Makefile +++ b/google/cloud/translate/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/vectorsearch/quickstart/.bazelrc b/google/cloud/vectorsearch/quickstart/.bazelrc index c884db46c2b4d..e88672558bca1 100644 --- a/google/cloud/vectorsearch/quickstart/.bazelrc +++ b/google/cloud/vectorsearch/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/vectorsearch/quickstart/CMakeLists.txt b/google/cloud/vectorsearch/quickstart/CMakeLists.txt index ec54e5bef567b..5ab9e4f5c6c8c 100644 --- a/google/cloud/vectorsearch/quickstart/CMakeLists.txt +++ b/google/cloud/vectorsearch/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-vectorsearch-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_vectorsearch REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/vectorsearch/quickstart/Makefile b/google/cloud/vectorsearch/quickstart/Makefile index f5e6e5e5594eb..ee01da364f6e4 100644 --- a/google/cloud/vectorsearch/quickstart/Makefile +++ b/google/cloud/vectorsearch/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/video/quickstart/.bazelrc b/google/cloud/video/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/video/quickstart/.bazelrc +++ b/google/cloud/video/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/video/quickstart/CMakeLists.txt b/google/cloud/video/quickstart/CMakeLists.txt index 6fcf838ea1c12..a77a8fdc52b3c 100644 --- a/google/cloud/video/quickstart/CMakeLists.txt +++ b/google/cloud/video/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-video-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_video REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/video/quickstart/Makefile b/google/cloud/video/quickstart/Makefile index 02e892c7de8ca..76fa7e5b3f196 100644 --- a/google/cloud/video/quickstart/Makefile +++ b/google/cloud/video/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/videointelligence/quickstart/.bazelrc b/google/cloud/videointelligence/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/videointelligence/quickstart/.bazelrc +++ b/google/cloud/videointelligence/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/videointelligence/quickstart/CMakeLists.txt b/google/cloud/videointelligence/quickstart/CMakeLists.txt index ce3a133671b63..93cd191263379 100644 --- a/google/cloud/videointelligence/quickstart/CMakeLists.txt +++ b/google/cloud/videointelligence/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-videointelligence-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_videointelligence REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/videointelligence/quickstart/Makefile b/google/cloud/videointelligence/quickstart/Makefile index df0fce351c0a8..10a6b59d67b50 100644 --- a/google/cloud/videointelligence/quickstart/Makefile +++ b/google/cloud/videointelligence/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/vision/quickstart/.bazelrc b/google/cloud/vision/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/vision/quickstart/.bazelrc +++ b/google/cloud/vision/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/vision/quickstart/CMakeLists.txt b/google/cloud/vision/quickstart/CMakeLists.txt index e547a8cc6e7ed..b4805477555c3 100644 --- a/google/cloud/vision/quickstart/CMakeLists.txt +++ b/google/cloud/vision/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-vision-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_vision REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/vision/quickstart/Makefile b/google/cloud/vision/quickstart/Makefile index f9d33fb400da3..a8c2ced111e02 100644 --- a/google/cloud/vision/quickstart/Makefile +++ b/google/cloud/vision/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/visionai/quickstart/.bazelrc b/google/cloud/visionai/quickstart/.bazelrc index c884db46c2b4d..e88672558bca1 100644 --- a/google/cloud/visionai/quickstart/.bazelrc +++ b/google/cloud/visionai/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/visionai/quickstart/CMakeLists.txt b/google/cloud/visionai/quickstart/CMakeLists.txt index 1ac56652f01fb..dd77866f762dd 100644 --- a/google/cloud/visionai/quickstart/CMakeLists.txt +++ b/google/cloud/visionai/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-visionai-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_visionai REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/visionai/quickstart/Makefile b/google/cloud/visionai/quickstart/Makefile index f7996d69a2061..8f5943ba8d313 100644 --- a/google/cloud/visionai/quickstart/Makefile +++ b/google/cloud/visionai/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/vmmigration/quickstart/.bazelrc b/google/cloud/vmmigration/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/vmmigration/quickstart/.bazelrc +++ b/google/cloud/vmmigration/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/vmmigration/quickstart/CMakeLists.txt b/google/cloud/vmmigration/quickstart/CMakeLists.txt index 6fec4a868285a..5488f1824eb6e 100644 --- a/google/cloud/vmmigration/quickstart/CMakeLists.txt +++ b/google/cloud/vmmigration/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-vmmigration-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_vmmigration REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/vmmigration/quickstart/Makefile b/google/cloud/vmmigration/quickstart/Makefile index 93d0ab62da0e0..1e14dfa62a60a 100644 --- a/google/cloud/vmmigration/quickstart/Makefile +++ b/google/cloud/vmmigration/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/vmwareengine/quickstart/.bazelrc b/google/cloud/vmwareengine/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/vmwareengine/quickstart/.bazelrc +++ b/google/cloud/vmwareengine/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/vmwareengine/quickstart/CMakeLists.txt b/google/cloud/vmwareengine/quickstart/CMakeLists.txt index 61e7ea230222c..605ae27ce31e0 100644 --- a/google/cloud/vmwareengine/quickstart/CMakeLists.txt +++ b/google/cloud/vmwareengine/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-vmwareengine-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_vmwareengine REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/vmwareengine/quickstart/Makefile b/google/cloud/vmwareengine/quickstart/Makefile index c7ce54c3e3bec..92800966e1a99 100644 --- a/google/cloud/vmwareengine/quickstart/Makefile +++ b/google/cloud/vmwareengine/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/vpcaccess/quickstart/.bazelrc b/google/cloud/vpcaccess/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/vpcaccess/quickstart/.bazelrc +++ b/google/cloud/vpcaccess/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/vpcaccess/quickstart/CMakeLists.txt b/google/cloud/vpcaccess/quickstart/CMakeLists.txt index 6cce885f86538..198d7244fc2f1 100644 --- a/google/cloud/vpcaccess/quickstart/CMakeLists.txt +++ b/google/cloud/vpcaccess/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-vpcaccess-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_vpcaccess REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/vpcaccess/quickstart/Makefile b/google/cloud/vpcaccess/quickstart/Makefile index 3bcd9b7eae479..7c8f180e754df 100644 --- a/google/cloud/vpcaccess/quickstart/Makefile +++ b/google/cloud/vpcaccess/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/webrisk/quickstart/.bazelrc b/google/cloud/webrisk/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/webrisk/quickstart/.bazelrc +++ b/google/cloud/webrisk/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/webrisk/quickstart/CMakeLists.txt b/google/cloud/webrisk/quickstart/CMakeLists.txt index 865f9b95a550b..77f3d9f5d3b52 100644 --- a/google/cloud/webrisk/quickstart/CMakeLists.txt +++ b/google/cloud/webrisk/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-webrisk-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_webrisk REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/webrisk/quickstart/Makefile b/google/cloud/webrisk/quickstart/Makefile index 1a06b12ad1916..a6c2814bbe56e 100644 --- a/google/cloud/webrisk/quickstart/Makefile +++ b/google/cloud/webrisk/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/websecurityscanner/quickstart/.bazelrc b/google/cloud/websecurityscanner/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/websecurityscanner/quickstart/.bazelrc +++ b/google/cloud/websecurityscanner/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/websecurityscanner/quickstart/CMakeLists.txt b/google/cloud/websecurityscanner/quickstart/CMakeLists.txt index 5b4b20a74797e..f1647009842a2 100644 --- a/google/cloud/websecurityscanner/quickstart/CMakeLists.txt +++ b/google/cloud/websecurityscanner/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-websecurityscanner-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_websecurityscanner REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/websecurityscanner/quickstart/Makefile b/google/cloud/websecurityscanner/quickstart/Makefile index 6b4014598a9a8..8955be720f5fd 100644 --- a/google/cloud/websecurityscanner/quickstart/Makefile +++ b/google/cloud/websecurityscanner/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/workflows/quickstart/.bazelrc b/google/cloud/workflows/quickstart/.bazelrc index a0cd2dae58f1b..d034b50775c2f 100644 --- a/google/cloud/workflows/quickstart/.bazelrc +++ b/google/cloud/workflows/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/workflows/quickstart/CMakeLists.txt b/google/cloud/workflows/quickstart/CMakeLists.txt index 3fa5b2a9efd1f..b8a5d4b45e538 100644 --- a/google/cloud/workflows/quickstart/CMakeLists.txt +++ b/google/cloud/workflows/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-workflows-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_workflows REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/workflows/quickstart/Makefile b/google/cloud/workflows/quickstart/Makefile index 0dfb554c0f88e..ecf1b8f38578f 100644 --- a/google/cloud/workflows/quickstart/Makefile +++ b/google/cloud/workflows/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/workloadmanager/quickstart/.bazelrc b/google/cloud/workloadmanager/quickstart/.bazelrc index c884db46c2b4d..e88672558bca1 100644 --- a/google/cloud/workloadmanager/quickstart/.bazelrc +++ b/google/cloud/workloadmanager/quickstart/.bazelrc @@ -15,14 +15,13 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true -# The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which -# disables C++14 features, even if the compilers defaults to C++ >= 14 -build:linux --cxxopt=-std=c++14 -build:macos --cxxopt=-std=c++14 -# Protobuf and gRPC require (or soon will require) C++14 to compile the "host" +# The project requires C++ >= 17. +build:linux --cxxopt=-std=c++17 +build:macos --cxxopt=-std=c++17 +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" # targets, such as protoc and the grpc plugin. -build:linux --host_cxxopt=-std=c++14 -build:macos --host_cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++17 +build:macos --host_cxxopt=-std=c++17 # Do not create the convenience links. They are inconvenient when the build # runs inside a docker image or if one builds a quickstart and then builds diff --git a/google/cloud/workloadmanager/quickstart/CMakeLists.txt b/google/cloud/workloadmanager/quickstart/CMakeLists.txt index ea9c6a1b94f07..e24ec3b481ef6 100644 --- a/google/cloud/workloadmanager/quickstart/CMakeLists.txt +++ b/google/cloud/workloadmanager/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-workloadmanager-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_workloadmanager REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/workloadmanager/quickstart/Makefile b/google/cloud/workloadmanager/quickstart/Makefile index e8e75c309e9ea..c55c2a7844130 100644 --- a/google/cloud/workloadmanager/quickstart/Makefile +++ b/google/cloud/workloadmanager/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=. diff --git a/google/cloud/workstations/quickstart/.bazelrc b/google/cloud/workstations/quickstart/.bazelrc index ec27511a60add..4bc8f77a4fdd0 100644 --- a/google/cloud/workstations/quickstart/.bazelrc +++ b/google/cloud/workstations/quickstart/.bazelrc @@ -15,12 +15,11 @@ # Use host-OS-specific config lines from bazelrc files. build --enable_platform_specific_config=true - - +# The project requires C++ >= 17. build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 - - +# Protobuf and gRPC require (or soon will require) C++17 to compile the "host" +# targets, such as protoc and the grpc plugin. build:linux --host_cxxopt=-std=c++17 build:macos --host_cxxopt=-std=c++17 diff --git a/google/cloud/workstations/quickstart/CMakeLists.txt b/google/cloud/workstations/quickstart/CMakeLists.txt index bd41cd34ee7c8..498fca991fda2 100644 --- a/google/cloud/workstations/quickstart/CMakeLists.txt +++ b/google/cloud/workstations/quickstart/CMakeLists.txt @@ -18,6 +18,9 @@ cmake_minimum_required(VERSION 3.22...3.31) project(google-cloud-cpp-workstations-quickstart CXX) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(google_cloud_cpp_workstations REQUIRED) # MSVC requires some additional code to select the correct runtime library diff --git a/google/cloud/workstations/quickstart/Makefile b/google/cloud/workstations/quickstart/Makefile index 9fa23c0654ea0..0fbb146472523 100644 --- a/google/cloud/workstations/quickstart/Makefile +++ b/google/cloud/workstations/quickstart/Makefile @@ -18,7 +18,7 @@ # The CXX, CXXFLAGS and CXXLD variables are hard-coded. These values work for # our tests, but applications would typically make them configurable parameters. CXX=g++ -CXXFLAGS= +CXXFLAGS=-std=c++17 CXXLD=$(CXX) BIN=.