diff --git a/cmake/QtFeature.cmake b/cmake/QtFeature.cmake index 1897b0ec08..0644ea3879 100644 --- a/cmake/QtFeature.cmake +++ b/cmake/QtFeature.cmake @@ -239,7 +239,7 @@ function(qt_feature_check_and_save_user_provided_value resultVar feature conditi if (DEFINED "FEATURE_${feature}") # Revisit new user provided value set(user_value "${FEATURE_${feature}}") - set(result "${user_value}") + string(TOUPPER "${user_value}" result) # If the build is marked as dirty and the user_value doesn't meet the new condition, # reset it to the computed one.