summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-04-29 16:25:19 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2021-05-31 20:50:07 +0200
commit459529ace98636c1ab534d889ab178da03b4c309 (patch)
tree4e051f470cfb93211c1df72e4be401fb36b0228a /util
parent75fffe006733d3d6c1621251be3c458d838128b4 (diff)
Add the 'Private' suffix to the internal module name by default
Modify pro2cmake to add the 'Private' suffix to the internal module name by default. Change-Id: Ia7b2fce387fad5f207a7379ac738173ff9262071 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index e9b910a12b..f6ea5a1ccd 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -3445,6 +3445,7 @@ def write_module(cm_fh: IO[str], scope: Scope, *, indent: int = 0) -> str:
extra.append("STATIC")
if "internal_module" in scope.get("CONFIG"):
is_public_module = False
+ cmake_target_name += "Private" # Assume all internal modules have the 'Private' suffix
extra.append("INTERNAL_MODULE")
if "no_module_headers" in scope.get("CONFIG"):
extra.append("NO_MODULE_HEADERS")