mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
Add missing depends to version.cpp generator (#583)
When git is installed and you aren't building a release tag, the command that generates build/version.cpp never gets reinvoked if the generated version.cpp already exists, so if you build, pull a new update, then rebuild you get the wrong version everywhere. (This still isn't perfect--if you change commits within the same version you end up with the wrong commit tag in the version--but at least the version itself will be right.)
This commit is contained in:
parent
e90cab06d5
commit
6d44629bd5
|
@ -43,7 +43,8 @@ elseif (GIT_FOUND OR Git_FOUND)
|
|||
"-D" "GIT=${GIT_EXECUTABLE}"
|
||||
"-D" "TO=${CMAKE_BINARY_DIR}/version.cpp"
|
||||
"-P" "cmake/GenVersion.cmake"
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||
DEPENDS "${CMAKE_SOURCE_DIR}/src/version.cpp.in")
|
||||
else()
|
||||
message(STATUS "WARNING: Git was not found!")
|
||||
write_static_version_header("unknown")
|
||||
|
|
Loading…
Reference in a new issue