diff options
author | Andreas Rogge <andreas.rogge@bareos.com> | 2019-12-05 19:40:28 +0300 |
---|---|---|
committer | Andreas Rogge <andreas.rogge@bareos.com> | 2019-12-06 22:02:02 +0300 |
commit | a39bce2557d13876c681c8bfd7e378c859a1a480 (patch) | |
tree | 7bcb6e807f0537be77c8a78efafe6dc14b7d8b24 /write_version_files.cmake | |
parent | a1c740061738fa81e00cc866b092db7a8fe0871c (diff) |
cmake: better error for failing version detection
Previously the error message when the detection of the Bareos version
failed was quite hard to understand.
With this patch the error now refers to the troubleshooting section of
the new "Automatic Version Generation" chapter in the developer guide.
Diffstat (limited to 'write_version_files.cmake')
-rw-r--r-- | write_version_files.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/write_version_files.cmake b/write_version_files.cmake index 53244cb92..4d336da8c 100644 --- a/write_version_files.cmake +++ b/write_version_files.cmake @@ -31,7 +31,11 @@ if(GIT_DESCRIBE_VERSION) endif() set(VERSION_TIMESTAMP "${GIT_COMMIT_TIMESTAMP}") else() - message(FATAL_ERROR "No version information from git available.") + message( + FATAL_ERROR + "VERSION_STRING not set, BareosVersion.cmake not found and no version data from git available.\n" + "For more information why this happened and how to fix it, please see " + "https://docs.bareos.org/DeveloperGuide/AutomaticVersionGeneration.html#troubleshooting") endif() set(version_file_header "# autogenerated by write_version_files.cmake") |