Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
leissa committed Feb 4, 2025
1 parent 420a717 commit d3ba40b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion cmake/Mim.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ function(add_mim_plugin)
${PLUGIN_D}
${PLUGIN_MD}
DEPFILE ${PLUGIN_D}
COMMAND $<TARGET_FILE:${MIM_TARGET_NAMESPACE}mim> ${PLUGIN_MIM} -P "${CMAKE_CURRENT_LIST_DIR}/.." --bootstrap --output-h ${AUTOGEN_H} --output-d ${PLUGIN_D} --output-md ${PLUGIN_MD}
COMMAND $<TARGET_FILE:${MIM_TARGET_NAMESPACE}mim> ${PLUGIN_MIM} -P "${CMAKE_CURRENT_LIST_DIR}/.." --bootstrap
--output-h ${AUTOGEN_H}
--output-d ${PLUGIN_D}
--output-md ${PLUGIN_MD}
MAIN_DEPENDENCY ${PLUGIN_MIM}
DEPENDS ${MIM_TARGET_NAMESPACE}mim
COMMENT "Bootstrapping MimIR plugin '${PLUGIN_MIM}'"
Expand Down
10 changes: 6 additions & 4 deletions docs/coding.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,12 @@ The command will create two targets:

This is an internal target to bootstrap the plugin.
It will generate:
_`<plugin-name>/autogen.h` for the C++ interface in order to identify annexes,
_ `<plugin-name>.md`, for the documentation, and \* `<plugin-name>.d` for the plugin's dependencies.
@note Tracking dependencies via the emitted dependency file is not supported for all CMake generators.
See [`add_custom_command`'s `DEPFILE` argument](https://cmake.org/cmake/help/latest/command/add_custom_command.html).

- `<plugin-name>/autogen.h` for the C++ interface in order to identify annexes,
- `<plugin-name>.md`, for the documentation, and
- `<plugin-name>.d` for the plugin's dependencies.
@note Tracking dependencies via the emitted dependency file is not supported for all CMake generators.
See [`add_custom_command`'s `DEPFILE` argument](https://cmake.org/cmake/help/latest/command/add_custom_command.html).

2. `mim_<plugin-name>`

Expand Down

0 comments on commit d3ba40b

Please sign in to comment.