diff options
Diffstat (limited to 'cmake/QtFeature.cmake')
-rw-r--r-- | cmake/QtFeature.cmake | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/cmake/QtFeature.cmake b/cmake/QtFeature.cmake index 5058a7f86b..f7765cea94 100644 --- a/cmake/QtFeature.cmake +++ b/cmake/QtFeature.cmake @@ -1,3 +1,5 @@ +include(QtFeatureCommon) + function(qt_feature_module_begin) qt_parse_all_arguments(arg "qt_feature_module_begin" "NO_MODULE;ONLY_EVALUATE_FEATURES" @@ -35,16 +37,6 @@ function(qt_feature_module_begin) set(__QtFeature_define_definitions "" PARENT_SCOPE) endfunction() -function(qt_feature_normalize_name name out_var) - # Normalize the feature name to something CMake can deal with. - if(name MATCHES "c\\+\\+") - string(REGEX REPLACE "[^a-zA-Z0-9_]" "x" name "${name}") - else() - string(REGEX REPLACE "[^a-zA-Z0-9_]" "_" name "${name}") - endif() - set(${out_var} "${name}" PARENT_SCOPE) -endfunction() - function(qt_feature feature) set(original_name "${feature}") qt_feature_normalize_name("${feature}" feature) |