mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
build: fix generated file paths when building in-tree
This commit is contained in:
@@ -156,7 +156,7 @@ foreach(sfile ${NEOVIM_SOURCES}
|
||||
${GENERATED_API_DISPATCH})
|
||||
get_filename_component(full_d ${sfile} PATH)
|
||||
file(RELATIVE_PATH d "${PROJECT_SOURCE_DIR}/src/nvim" "${full_d}")
|
||||
if(${d} MATCHES "^[.][.]")
|
||||
if(${d} MATCHES "^([.][.]|auto/)")
|
||||
file(RELATIVE_PATH d "${GENERATED_DIR}" "${full_d}")
|
||||
endif()
|
||||
get_filename_component(f ${sfile} NAME)
|
||||
|
Reference in New Issue
Block a user