summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/configurejson2cmake.py6
-rw-r--r--util/cmake/helper.py5
2 files changed, 4 insertions, 7 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 148109e2a4..890d4dfc5f 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -615,13 +615,7 @@ def parseFeature(ctx, feature, data, cm_fh):
'alloc_malloc_h': None,
'alloc_stdlib_h': None,
'build_all': None,
- 'c++11': None, # C and C++ versions
'c11': None,
- 'c++14': None,
- 'c++1y': None,
- 'c++1z': None,
- # FIXME: used in qtdeclarative, drop when we require C++14
- 'cxx14_make_unique': None,
'c89': None,
'c99': None,
'ccache': None,
diff --git a/util/cmake/helper.py b/util/cmake/helper.py
index bb2b239aa0..8f24a49d6b 100644
--- a/util/cmake/helper.py
+++ b/util/cmake/helper.py
@@ -302,7 +302,10 @@ def find_library_info_for_target(targetName: str) -> typing.Optional[LibraryMapp
def featureName(input: str) -> str:
- return re.sub(r'[^a-zA-Z0-9_]', '_', input)
+ replacement_char = '_'
+ if input.startswith('c++'):
+ replacement_char = 'x'
+ return re.sub(r'[^a-zA-Z0-9_]', replacement_char, input)
def map_qt_library(lib: str) -> str: