mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
b155608bff
Older gcc versions (4.x) require passing --std=c99 compiler flag to prevent warnings from being emitted. Instead of setting it for each dependency, it's easier to just pass the CMAKE_C_STANDARD flag to all dependencies. This also prevents the scenario of us forgetting to set it if we add new dependencies.
22 lines
337 B
CMake
22 lines
337 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(parser C)
|
|
|
|
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:
|