neovim/cmake.config
dundargoc 438b4361cc
build: use modern cmake (#21589)
Replace old-school cmake with the so-called "Modern CMake", meaning
preferring using targets and properties over directory settings and
variables. This allows greater flexibility, robustness and clarity over
how the code works.

The following deprecated commands will be replaced with their modern
alternatives that operates on a specific target, rather than all targets
in the current directory:

- add_compile_options -> target_compile_options
- include_directories -> target_include_directories
- link_libraries -> target_link_libraries
- add_definitions -> target_compile_definitions

There are mainly four main targets that we currently use: nvim, libnvim,
nvim-test (used by unittests) and ${texe} (used by
check-single-includes). The goal is to explicitly define the
dependencies of each target fully, rather than having everything be
dependent on everything else.
2023-01-10 18:49:57 +01:00
..
iwyu feat!: remove hardcopy 2023-01-03 10:07:43 +00:00
CMakeLists.txt build: use modern cmake (#21589) 2023-01-10 18:49:57 +01:00
config.h.in vim-patch:8.2.0711: temp directory might be cleared (#21614) 2023-01-02 20:37:13 +08:00
pathdef.c.in build: rename build-related dirs 2022-06-28 04:02:29 -07:00
versiondef.h.in build: rename build-related dirs 2022-06-28 04:02:29 -07:00