Code: Select all
Scanning dependencies of target generateVersionFiles
Configuring Version files ...
CMake Error at rts/build/cmake/UtilVersion.cmake:186 (Message): Failed to fetch SPRING_ENGINE version.
Call Stack (most recent call first): rts/build/cmake/ConfigureVersion.cmake:28 (FetchSpringVersion)
CMakeFiles/generateVersionFiles.dir/build.make:57: recipe for target 'generateVersionFiles' failed make[3]: *** [generateVersionFiles] Error 1
CMakeFiles/Makefile2:102: recipe for target 'CMakeFiles/generateVersionFiles.dir/all' failed make[2]: *** [CMakeFiles/generateVersionFiles.dir/all] Error 2
CMakeFiles/Makefile2:3547: recipe for target 'rts/builds/CMakeFiles/spring.dir/rule' failed
make[1]: *** [rts/builds/CMakeFiles/spring.dir/rule] Error 2
Makefile:966: recipe for target 'spring' failed
make: *** [spring] Error 2
(( i just copied the entire thing so it would make sense ))
Code: Select all
# Gets the version for a source directory, either from GIT,
# or if that fails (for example if it is not a git repository,
# as is the case when using a tarball), from the VERSION file.
# Creates a FATAL_ERROR on failure.
# Sets the following vars:
# - ${prefix}_VERSION
Macro (FetchSpringVersion dir prefix)
# unset the vars
Set(${prefix}_VERSION)
Set(${prefix}_VERSION-NOTFOUND)
If (EXISTS "${dir}/.git")
# Try to fetch version through git
If (NOT GIT_FOUND)
Message(FATAL_ERROR "Git repository detected, but git executable not found; failed to fetch ${prefix} version.")
EndIf (NOT GIT_FOUND)
# Fetch git version info
Git_Util_Describe(${prefix}_Describe ${dir} "*")
If (NOT ${prefix}_Describe)
Message(FATAL_ERROR "Failed to fetch git-describe for ${prefix}.")
EndIf (NOT ${prefix}_Describe)
If ("${${prefix}_Describe}" MATCHES "^${VERSION_REGEX_RELEASE}$")
Set(${prefix}_IsRelease TRUE)
Else ("${${prefix}_Describe}" MATCHES "^${VERSION_REGEX_RELEASE}$")
Set(${prefix}_IsRelease FALSE)
EndIf ("${${prefix}_Describe}" MATCHES "^${VERSION_REGEX_RELEASE}$")
If (NOT ${prefix}_IsRelease)
# We always want the long git-describe output on non-releases
# for example: 83.0.1-0-g1234567
Git_Util_Describe(${prefix}_Describe ${dir} "*" --long)
EndIf (NOT ${prefix}_IsRelease)
Git_Util_Branch(${prefix}_Branch ${dir})
If (${prefix}_IsRelease)
Set(${prefix}_VERSION "${${prefix}_Describe}")
Else (${prefix}_IsRelease)
If (NOT ${prefix}_Branch)
Message(FATAL_ERROR "Failed to fetch the git branch for ${prefix}.")
EndIf (NOT ${prefix}_Branch)
Set(${prefix}_VERSION "${${prefix}_Describe} ${${prefix}_Branch}")
EndIf (${prefix}_IsRelease)
ParseSpringVersion(${prefix} "${${prefix}_VERSION}")
If ("${${prefix}_Branch}" STREQUAL "master")
If (NOT "${${prefix}_COMMITS}" STREQUAL "" OR NOT "${${prefix}_HASH}" STREQUAL "")
Message(AUTHOR_WARNING "Commit without a version tag found on branch master for ${prefix}; this indicates a tagging/branching/push error.")
EndIf (NOT "${${prefix}_COMMITS}" STREQUAL "" OR NOT "${${prefix}_HASH}" STREQUAL "")
EndIf ("${${prefix}_Branch}" STREQUAL "master")
Else (EXISTS "${dir}/.git")
# Try to fetch version through VERSION file
GetVersionFromFile(${prefix}_VERSION "${dir}/VERSION")
If (${${prefix}_VERSION-NOTFOUND})
(Line 186) Message(FATAL_ERROR "Failed to fetch ${prefix} version.")
Else (${${prefix}_VERSION-NOTFOUND})
Message(STATUS "${prefix} version fetched from VERSION file: ${${prefix}_VERSION}")
EndIf (${${prefix}_VERSION-NOTFOUND})
EndIf (EXISTS "${dir}/.git")