From 82c86856d1fefac5badf91d77a4f81a068fd5060 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Fri, 4 Oct 2019 14:04:10 +0200 Subject: [PATCH] pro2cmake: Use get_files for STATECHARTS ...to get proper variable replacements. Change-Id: I533a6abfbc7721313840fd75125eeaa7b26f2eba Reviewed-by: Alexandru Croitor --- util/cmake/pro2cmake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 0db814d982f..4c3c474811e 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -2283,7 +2283,7 @@ def write_resources(cm_fh: IO[str], target: str, scope: Scope, indent: int = 0, def write_statecharts(cm_fh: IO[str], target: str, scope: Scope, indent: int = 0, is_example=False): - sources = scope.get("STATECHARTS") + sources = scope.get_files("STATECHARTS", use_vpath=True) if not sources: return cm_fh.write("\n# Statecharts:\n")