aboutsummaryrefslogtreecommitdiff
path: root/cmake/GetCompileFlags.cmake
Commit message (Collapse)AuthorAge
* build: use modern cmake (#21589)dundargoc2023-01-10
| | | | | | | | | | | | | | | | | | | | | 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.
* build: remove unused variable CMAKE_C_COMPILER_ARG1dundargoc2022-10-02
| | | | | It was set in file cmake/i386-linux-gnu.toolchain.cmake which has been removed since we don't use Travis anymore.
* cmake/GetCompileFlags: include CMAKE_C_COMPILER_ARG1 (#11091)Daniel Hahler2019-09-25
| | | This is used internally (e.g. on Travis) for 32-bit builds (`-m32`).
* build: cmake: GetCompileFlags: include CMAKE_C_FLAGS (#10957)Daniel Hahler2019-09-06
| | | | Calls `GetCompileFlags` from `src/nvim` directory, to include `--coverage` (and any others).
* get_compile_flags: also look at target propertiesDaniel Hahler2019-08-15
|
* build: fix GetCompileFlags for CMake #10444Daniel Hahler2019-07-07
| | | Ref: https://github.com/neovim/neovim/pull/10363#issuecomment-508916959
* build: CMake: do not set CMP0059 to old (#10363)Daniel Hahler2019-06-29
| | | | | | | | | Keeps using add_definitions for compatibility with older CMake. Newer CMake (3.12) would have `add_compile_definitions`, but it is not required, since `add_defitions` was meant to be used for compile/preprocessor definitions initially anyway. Ref: https://github.com/neovim/neovim/pull/4389
* cmake/GetCompileFlags: remove duplicate include dirsJustin M. Keyes2018-02-14
| | | | Reduces noise in :version message.
* version: Add compilation info.Florian Walch2014-11-09