diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-04-28 13:32:08 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-04-30 14:20:26 +0200 |
commit | ebc3350be7b67f6cc8ca7cf30cefd98e88b87ef5 (patch) | |
tree | 3ec9ebffd2bd7a2dc79d6d031458c7edb9589250 | |
parent | 4618fa6f8dec80a10d348c7c99a31fa4f319856b (diff) |
pro2cmake: Translate (QT|QMAKE_USE)_FOR_PRIVATE into PRIVATE_MODULE_INTERFACE
Fixes: QTBUG-83063
Change-Id: I5b02cd236ef0fd3a9ed389294c05f8e3024463cd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rwxr-xr-x | util/cmake/pro2cmake.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 2914e8dec1..89d8412448 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -2123,6 +2123,10 @@ def write_library_section( else: if dep not in public_module_public_deps: public_module_public_deps.append(dep) + + private_module_interface_deps.extend([map_qt_library(q) for q in scope.expand("QT_FOR_PRIVATE")]) + private_module_interface_deps.extend(_map_libraries_to_cmake(scope.expand("QMAKE_USE_FOR_PRIVATE"), known_libraries)) + write_list(cm_fh, public_module_private_deps, "LIBRARIES", indent + 1) write_list(cm_fh, public_module_public_deps, "PUBLIC_LIBRARIES", indent + 1) write_list(cm_fh, private_module_interface_deps, "PRIVATE_MODULE_INTERFACE", indent + 1) |