Skip to content

Commit f813cb6

Browse files
authored
feat(storage): add diagnostic about deprecated storage gRPC option. (#15144)
* feat(storage): add diagnostic about deprecated storage gRPC option. * Formatting fixes
1 parent b7e8e78 commit f813cb6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmake/GoogleCloudCppFeatures.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,15 @@ function (google_cloud_cpp_define_dependent_legacy_feature_options)
512512
OR (experimental-storage_grpc IN_LIST GOOGLE_CLOUD_CPP_ENABLE))
513513
set(GOOGLE_CLOUD_CPP_STORAGE_ENABLE_GRPC_DEFAULT ON)
514514
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+
515524
option(
516525
GOOGLE_CLOUD_CPP_STORAGE_ENABLE_GRPC
517526
"Enable compilation for the GCS gRPC plugin (EXPERIMENTAL). Deprecated, prefer GOOGLE_CLOUD_CPP_ENABLE."

0 commit comments

Comments
 (0)