aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_vimdoc.py
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-06-17 14:11:08 +0200
committerDundar Goc <gocdundar@gmail.com>2022-06-19 18:34:28 +0200
commitcd1b2998d394ad85f1f48a5f2a8cb064ae31b521 (patch)
tree895e08f1e2dc257357e225b21a56933fd746fe7c /scripts/gen_vimdoc.py
parent668591ae04b3578d48d916680e4641c3c4afa525 (diff)
downloadrneovim-cd1b2998d394ad85f1f48a5f2a8cb064ae31b521.tar.gz
rneovim-cd1b2998d394ad85f1f48a5f2a8cb064ae31b521.tar.bz2
rneovim-cd1b2998d394ad85f1f48a5f2a8cb064ae31b521.zip
build(cmake): simplify and speed up the uninstall target
More specifically, replace exec_program with file(REMOVE ...) so that the uninstall target is run during the build stage instead of the configure stage, significantly speeding up the target. The code snippet that was removed is taken from the cmake FAQ https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#can-i-do-make-uninstall-with-cmake. However, this uses undocumented features such as IMMEDIATE when calling configure_file, which is an artifact from cmake 2.x (it's so old it's difficult to find information on it). Similarly, this particular code snippet has been around for a long time and originated from the cmake mailing lists. Based on this I believe the in-file was a workaround for the limitations of cmake back then and that it's not required anymore.
Diffstat (limited to 'scripts/gen_vimdoc.py')
0 files changed, 0 insertions, 0 deletions