Restored empty CMakeLists.txt

This commit is contained in:
2025-11-19 09:42:55 +00:00
parent d1d5d20472
commit a24238f4dc
2 changed files with 4 additions and 6 deletions

View File

@@ -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:

View File

@@ -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 = []