mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -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
14 lines
292 B
CMake
14 lines
292 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
project (lpeg C)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
file(GLOB LPEG_SOURCES ${CMAKE_SOURCE_DIR}/*.c)
|
|
add_library(lpeg ${LPEG_SOURCES})
|
|
|
|
target_compile_options(lpeg PRIVATE -w)
|
|
|
|
install(TARGETS lpeg ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
# vim: set ft=cmake:
|