From d1891143e36eded797161dab98e123e3f0fae022 Mon Sep 17 00:00:00 2001 From: jake-g00dwin Date: Tue, 24 Feb 2026 19:02:09 -0800 Subject: [PATCH] updated the template cmakelists.txt file to use variables from toolchain files. --- .template_files/modules/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.template_files/modules/CMakeLists.txt b/.template_files/modules/CMakeLists.txt index 0bdbda9..b7f1928 100644 --- a/.template_files/modules/CMakeLists.txt +++ b/.template_files/modules/CMakeLists.txt @@ -14,6 +14,13 @@ if(NOT UNIT_TESTING) target_link_libraries(module_name RegEdit ) + + #These get defined in the toolchain files. + target_compile_options(module_name PUBLIC + ${OBJECT_GEN_FLAGS} + ${C_FLAGS_ARCH} + ) + else() target_include_directories(module_name PUBLIC ${CMAKE_CURRENT_LIST_DIR}