We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7e8e78 commit f813cb6Copy full SHA for f813cb6
cmake/GoogleCloudCppFeatures.cmake
@@ -512,6 +512,15 @@ function (google_cloud_cpp_define_dependent_legacy_feature_options)
512
OR (experimental-storage_grpc IN_LIST GOOGLE_CLOUD_CPP_ENABLE))
513
set(GOOGLE_CLOUD_CPP_STORAGE_ENABLE_GRPC_DEFAULT ON)
514
endif ()
515
+
516
+ # Emit a warning if the deprecated option is explicitly set
517
+ if (GOOGLE_CLOUD_CPP_STORAGE_ENABLE_GRPC)
518
+ message(
519
+ WARNING
520
+ "GOOGLE_CLOUD_CPP_STORAGE_ENABLE_GRPC is deprecated. Please use -DGOOGLE_CLOUD_CPP_ENABLE=storage_grpc instead."
521
+ )
522
+ endif ()
523
524
option(
525
GOOGLE_CLOUD_CPP_STORAGE_ENABLE_GRPC
526
"Enable compilation for the GCS gRPC plugin (EXPERIMENTAL). Deprecated, prefer GOOGLE_CLOUD_CPP_ENABLE."
0 commit comments