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.append(")")
lines += ["add_subdirectory(%s)"%(directory.name) for directory in dirs] lines += ["add_subdirectory(%s)"%(directory.name) for directory in dirs]
# Write CMakeLists if not empty lists_path = path / "CMakeLists.txt"
if len(lines) != 0: with open(lists_path, "w") as of:
lists_path = path / "CMakeLists.txt" of.write("\n".join(lines)+"\n")
with open(lists_path, "w") as of:
of.write("\n".join(lines)+"\n")
# Recurse # Recurse
for directory in dirs: for directory in dirs:

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "mx_convert" name = "mx_convert"
version = "0.2.1" version = "0.2.2"
description = "A Cube MX projct conversion helper" description = "A Cube MX projct conversion helper"
authors = [{ name = "Didas72" }] authors = [{ name = "Didas72" }]
dependencies = [] dependencies = []