aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-01-21 23:29:27 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-01-22 00:30:27 +0100
commitf8310beeed049ae5aadd3baa60ae49298bc04538 (patch)
tree42630af2c32c28fecd2ed5775b4e1210a99754b7
parent215244f74950d6099863fcf5e59213431f59d40f (diff)
downloadrneovim-f8310beeed049ae5aadd3baa60ae49298bc04538.tar.gz
rneovim-f8310beeed049ae5aadd3baa60ae49298bc04538.tar.bz2
rneovim-f8310beeed049ae5aadd3baa60ae49298bc04538.zip
build: create BINARY_LIB_DIR directory before adding parser
cmake -E copy_directory behaves differently depending on if the directory in question exists or not. Always create it to ensure it behaves consistently.
-rw-r--r--src/nvim/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 283be18ae7..4f9edad6a8 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -762,6 +762,8 @@ if(WIN32)
add_dependencies(nvim_runtime_deps external_blobs)
endif()
+file(MAKE_DIRECTORY ${BINARY_LIB_DIR})
+
# install treesitter parser if bundled
if(EXISTS ${DEPS_PREFIX}/lib/nvim/parser)
add_custom_command(TARGET nvim_runtime_deps COMMAND ${CMAKE_COMMAND} -E ${COPY_DIRECTORY} ${DEPS_PREFIX}/lib/nvim/parser ${BINARY_LIB_DIR}/parser)