mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
63e67468b4
It's simpler to let cmake figure out what flags to add to each platforms to create position independent code rather than handling it ourselves. Also remove code that sets POSITION_INDEPENDENT_CODE property on SHARED and MODULE libraries, as it's already on by default.
23 lines
362 B
CMake
23 lines
362 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(parser C)
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
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:
|