mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00

This removes cmake policy warning for CMP0053 on windows and ensures the build works correctly for newer cmake policies.
20 lines
360 B
CMake
20 lines
360 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
# some parsers have c++ scanner, problem?
|
|
project(parser C) # CXX
|
|
|
|
add_library(parser
|
|
MODULE
|
|
src/parser.c
|
|
)
|
|
set_target_properties(
|
|
parser
|
|
PROPERTIES
|
|
POSITION_INDEPENDENT_CODE ON
|
|
OUTPUT_NAME ${PARSERLANG}
|
|
PREFIX ""
|
|
)
|
|
|
|
include_directories(src)
|
|
|
|
install(TARGETS parser LIBRARY DESTINATION lib/nvim/parser)
|