Merge pull request #5466 from jszakmeister/fix-generated-files-for-in-tree-build

Fix generated files for in-tree build.
This commit is contained in:
John Szakmeister 2016-10-12 04:02:47 -04:00 committed by GitHub
commit f098e53e6f

View File

@ -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)