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}