diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 5b7c02a7393..475ff6affa0 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -2775,6 +2775,9 @@ def write_plugin(cm_fh, scope, *, indent: int = 0) -> str: if plugin_class_name: extra.append(f"CLASS_NAME {plugin_class_name}") + if 'static' in scope.get('CONFIG'): + extra.append('STATIC') + write_main_part( cm_fh, plugin_name,