From a24238f4dc80900d61d6d82c877a755f8c2974b7 Mon Sep 17 00:00:00 2001 From: Didas72 Date: Wed, 19 Nov 2025 09:42:55 +0000 Subject: [PATCH] Restored empty CMakeLists.txt --- mx_convert/mx_convert.py | 8 +++----- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/mx_convert/mx_convert.py b/mx_convert/mx_convert.py index 4a2906e..febfe3f 100644 --- a/mx_convert/mx_convert.py +++ b/mx_convert/mx_convert.py @@ -80,11 +80,9 @@ def recurse_cmakelists(path: Path): lines.append(")") lines += ["add_subdirectory(%s)"%(directory.name) for directory in dirs] - # Write CMakeLists if not empty - if len(lines) != 0: - lists_path = path / "CMakeLists.txt" - with open(lists_path, "w") as of: - of.write("\n".join(lines)+"\n") + lists_path = path / "CMakeLists.txt" + with open(lists_path, "w") as of: + of.write("\n".join(lines)+"\n") # Recurse for directory in dirs: diff --git a/pyproject.toml b/pyproject.toml index 1f40f93..87f0ad7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mx_convert" -version = "0.2.1" +version = "0.2.2" description = "A Cube MX projct conversion helper" authors = [{ name = "Didas72" }] dependencies = []