From d482482f52272d7eaa1752e2cff51835feb6fbae Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 7 Dec 2025 16:26:16 +0000 Subject: [PATCH] fix(cmake): do not disable feature if option GOOGLE_CLOUD_CPP_ENABLE_* does not exist --- cmake/GoogleCloudCppFeatures.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/GoogleCloudCppFeatures.cmake b/cmake/GoogleCloudCppFeatures.cmake index c5ec33d3fba0c..a3cb6c41c58b1 100644 --- a/cmake/GoogleCloudCppFeatures.cmake +++ b/cmake/GoogleCloudCppFeatures.cmake @@ -372,6 +372,7 @@ macro (google_cloud_cpp_enable_cleanup) foreach (library IN LISTS GOOGLE_CLOUD_CPP_LEGACY_FEATURES) string(TOUPPER "GOOGLE_CLOUD_CPP_ENABLE_${library}" feature_flag) if ("${library}" IN_LIST GOOGLE_CLOUD_CPP_ENABLE + AND DEFINED ${feature_flag} AND NOT "${${feature_flag}}") message( WARNING "Using ${feature_flag} is discouraged. Please use the"