diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-06-18 17:31:01 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-06-19 18:34:28 +0200 |
commit | 636a30998166668f49a8ccca9daa193f6e7ca432 (patch) | |
tree | 74b4a330e84514ca9ca142e00c78d1d7359940d8 /src | |
parent | cd1b2998d394ad85f1f48a5f2a8cb064ae31b521 (diff) | |
download | rneovim-636a30998166668f49a8ccca9daa193f6e7ca432.tar.gz rneovim-636a30998166668f49a8ccca9daa193f6e7ca432.tar.bz2 rneovim-636a30998166668f49a8ccca9daa193f6e7ca432.zip |
build(cmake): simplify def_cmd_target function
Instead of appending to a command output, append to an existing target
instead. The primary benefit is intermediary ...-cmd targets aren't
needed, we can instead append commands to the relevant target directly.
Diffstat (limited to 'src')
-rwxr-xr-x | src/nvim/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 0d0fba265b..f465d911f9 100755 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -805,7 +805,7 @@ add_custom_target(lintc DEPENDS ${LINT_TARGETS}) def_cmd_target(lintuncrustify ${UNCRUSTIFY_PRG} UNCRUSTIFY_PRG false) if(UNCRUSTIFY_PRG) - add_custom_command(OUTPUT lintuncrustify-cmd APPEND + add_custom_command(TARGET lintuncrustify COMMAND ${CMAKE_COMMAND} -D UNCRUSTIFY_PRG=${UNCRUSTIFY_PRG} -D PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} |