From c59200a54c2f4a9d95bff2bf5c8ee31bc5710b03 Mon Sep 17 00:00:00 2001 From: Didas72 Date: Mon, 24 Nov 2025 11:00:16 +0000 Subject: [PATCH] Fix bad target in some CMake lines --- mx_convert/mx_convert.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mx_convert/mx_convert.py b/mx_convert/mx_convert.py index 542ebbf..b4c234c 100644 --- a/mx_convert/mx_convert.py +++ b/mx_convert/mx_convert.py @@ -94,8 +94,8 @@ def root_cmakelists(path: Path): # Define custom libraries lines.append("add_library(%s STATIC)"%(CMAKE_TARGET)) lines.append("target_compile_definitions(%s PRIVATE ${COMPILER_DEFINES})"%(CMAKE_TARGET)) - lines.append("target_compile_options(${EXECUTABLE} PRIVATE -Os -ffunction-sections -fdata-sections -g -flto)") - lines.append("target_link_options(${EXECUTABLE} PRIVATE -T ${LINKER_SCRIPT} --specs=nano.specs -Wl,--gc-sections -flto)") + lines.append("target_compile_options(%s PRIVATE -Os -ffunction-sections -fdata-sections -g -flto)"%(CMAKE_TARGET)) + lines.append("target_link_options(%s PRIVATE -T ${LINKER_SCRIPT} --specs=nano.specs -Wl,--gc-sections -flto)"%(CMAKE_TARGET)) # Read previously generated contents with open(lists_path, "r") as _if: diff --git a/pyproject.toml b/pyproject.toml index 98a7ed8..4087d81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mx_convert" -version = "0.5.1" +version = "0.5.2" description = "A Cube MX projct conversion helper" authors = [{ name = "Didas72" }] dependencies = []