summaryrefslogtreecommitdiffstats
path: root/util/cmake
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2019-10-10 17:02:59 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-10-11 09:23:13 +0000
commit1dd82a88438a8e76bc25c5ef122a3b6afa0bcbdf (patch)
treeb392af402240ccff54c748fa8ff3f043faa86336 /util/cmake
parentfd431fadc1a5af1bd3922f5148f39b574cf272f5 (diff)
Add SKIP_INSTALL to add_qt_plugin()
Provide a SKIP_INSTALL argument to add_qt_plugin for test cases with plugins lacking install information. Change-Id: Iddb3843fab1790d69d64686530a46057a2ff0477 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake')
-rwxr-xr-xutil/cmake/pro2cmake.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index bcb145cb59..bf73c87e44 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -2828,6 +2828,8 @@ def write_plugin(cm_fh, scope, *, indent: int = 0) -> str:
target_path = replace_path_constants(target_path, scope)
if target_path:
extra.append(f'INSTALL_DIRECTORY "{target_path}"')
+ else:
+ extra.append('SKIP_INSTALL')
plugin_class_name = scope.get_string("PLUGIN_CLASS_NAME")
if plugin_class_name: