mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 04:18:18 +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})
|
${GENERATED_API_DISPATCH})
|
||||||
get_filename_component(full_d ${sfile} PATH)
|
get_filename_component(full_d ${sfile} PATH)
|
||||||
file(RELATIVE_PATH d "${PROJECT_SOURCE_DIR}/src/nvim" "${full_d}")
|
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}")
|
file(RELATIVE_PATH d "${GENERATED_DIR}" "${full_d}")
|
||||||
endif()
|
endif()
|
||||||
get_filename_component(f ${sfile} NAME)
|
get_filename_component(f ${sfile} NAME)
|
||||||
|
Reference in New Issue
Block a user