neovim/cmake.deps/cmake/TreesitterParserCMakeLists.txt
dundargoc b155608bff
build: set CMAKE_C_STANDARD to 99 for all dependencies
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.
2023-03-24 10:22:15 +01:00

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: