Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rogge <andreas.rogge@bareos.com>2019-12-05 19:40:28 +0300
committerAndreas Rogge <andreas.rogge@bareos.com>2019-12-06 22:02:02 +0300
commita39bce2557d13876c681c8bfd7e378c859a1a480 (patch)
tree7bcb6e807f0537be77c8a78efafe6dc14b7d8b24 /write_version_files.cmake
parenta1c740061738fa81e00cc866b092db7a8fe0871c (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.cmake6
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")