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