mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
Merge pull request #19508 from ii14/fix_older_cmake_makefiles
build: fix git version generation on makefiles with older cmake versions
This commit is contained in:
@@ -268,7 +268,7 @@ foreach(sfile ${NVIM_SOURCES}
|
|||||||
set(depends "${HEADER_GENERATOR}" "${sfile}")
|
set(depends "${HEADER_GENERATOR}" "${sfile}")
|
||||||
if("${f}" STREQUAL "version.c")
|
if("${f}" STREQUAL "version.c")
|
||||||
# Ensure auto/versiondef_git.h exists after "make clean".
|
# Ensure auto/versiondef_git.h exists after "make clean".
|
||||||
list(APPEND depends "${NVIM_VERSION_GIT_H}")
|
list(APPEND depends update_version_stamp "${NVIM_VERSION_GIT_H}")
|
||||||
endif()
|
endif()
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT "${gf_c_h}" "${gf_h_h}"
|
OUTPUT "${gf_c_h}" "${gf_h_h}"
|
||||||
|
Reference in New Issue
Block a user