Skip to content

Commit d482482

Browse files
committed
fix(cmake): do not disable feature if option GOOGLE_CLOUD_CPP_ENABLE_* does not exist
1 parent 826dd38 commit d482482

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/GoogleCloudCppFeatures.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ macro (google_cloud_cpp_enable_cleanup)
372372
foreach (library IN LISTS GOOGLE_CLOUD_CPP_LEGACY_FEATURES)
373373
string(TOUPPER "GOOGLE_CLOUD_CPP_ENABLE_${library}" feature_flag)
374374
if ("${library}" IN_LIST GOOGLE_CLOUD_CPP_ENABLE
375+
AND DEFINED ${feature_flag}
375376
AND NOT "${${feature_flag}}")
376377
message(
377378
WARNING "Using ${feature_flag} is discouraged. Please use the"

0 commit comments

Comments
 (0)