mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
Merge pull request #11841 from bfredl/libdir
build: always create build/lib/nvim so the install command doesn't fail
This commit is contained in:
commit
31614d3eb0
@ -23,6 +23,7 @@ endif()
|
||||
set(TOUCHES_DIR ${PROJECT_BINARY_DIR}/touches)
|
||||
set(GENERATOR_DIR ${CMAKE_CURRENT_LIST_DIR}/generators)
|
||||
set(GENERATED_DIR ${PROJECT_BINARY_DIR}/src/nvim/auto)
|
||||
set(BINARY_LIB_DIR ${PROJECT_BINARY_DIR}/lib/nvim/)
|
||||
set(API_DISPATCH_GENERATOR ${GENERATOR_DIR}/gen_api_dispatch.lua)
|
||||
set(API_UI_EVENTS_GENERATOR ${GENERATOR_DIR}/gen_api_ui_events.lua)
|
||||
set(GENERATOR_C_GRAMMAR ${GENERATOR_DIR}/c_grammar.lua)
|
||||
@ -546,12 +547,14 @@ else()
|
||||
endif()
|
||||
set_target_properties(nvim_runtime_deps PROPERTIES FOLDER deps)
|
||||
|
||||
file(MAKE_DIRECTORY ${BINARY_LIB_DIR})
|
||||
|
||||
# install treesitter parser if bundled
|
||||
if(EXISTS ${DEPS_PREFIX}/lib/nvim/parser)
|
||||
file(COPY ${DEPS_PREFIX}/lib/nvim/parser DESTINATION ${PROJECT_BINARY_DIR}/lib/nvim/)
|
||||
file(COPY ${DEPS_PREFIX}/lib/nvim/parser DESTINATION ${BINARY_LIB_DIR})
|
||||
endif()
|
||||
|
||||
install(DIRECTORY ${PROJECT_BINARY_DIR}/lib/nvim/
|
||||
install(DIRECTORY ${BINARY_LIB_DIR}
|
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/nvim/
|
||||
USE_SOURCE_PERMISSIONS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user