From 459529ace98636c1ab534d889ab178da03b4c309 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Thu, 29 Apr 2021 16:25:19 +0200 Subject: [PATCH] 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 --- util/cmake/pro2cmake.py | 1 + 1 file changed, 1 insertion(+) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index e9b910a12b7..f6ea5a1ccdd 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")