mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
7840760776
The benefits are primarily being able to use FetchContent, which allows for a more flexible dependency handling. Other various quality-of-life features such as `-B` and `-S` flags are also included. This also removes broken `--version` generation as it does not work for version 3.10 and 3.11 due to the `JOIN` generator expression. Reference: https://github.com/neovim/neovim/issues/24004
28 lines
476 B
CMake
28 lines
476 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
# Can be removed once minimum version is at least 3.15
|
|
if(POLICY CMP0092)
|
|
cmake_policy(SET CMP0092 NEW)
|
|
endif()
|
|
project(parser C)
|
|
|
|
add_compile_options(-w)
|
|
|
|
file(GLOB source_files src/*.c)
|
|
|
|
add_library(parser
|
|
MODULE
|
|
${source_files}
|
|
)
|
|
set_target_properties(
|
|
parser
|
|
PROPERTIES
|
|
OUTPUT_NAME ${PARSERLANG}
|
|
PREFIX ""
|
|
)
|
|
|
|
include_directories(src)
|
|
|
|
install(TARGETS parser LIBRARY DESTINATION lib/nvim/parser)
|
|
|
|
# vim: set ft=cmake:
|