From bae4f2c7dbaf7666d1f0cd52e88c9982ba1ca8e5 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sun, 29 May 2016 18:26:53 +0200 Subject: [PATCH] Provide better scmrev defaults without .git Use the default values from CMakeLists.txt (previously used for CPack). We usually update these when tagging a new major version. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12bb09060a..f21e1f1a3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,6 +143,14 @@ else() set(DOLPHIN_VERSION_PATCH ${DOLPHIN_WC_REVISION}) endif() +# If Dolphin is not built from a Git repository, default the version info to +# reasonable values. +if(NOT DOLPHIN_WC_REVISION) + set(DOLPHIN_WC_DESCRIBE "${DOLPHIN_VERSION_MAJOR}.${DOLPHIN_VERSION_MINOR}") + set(DOLPHIN_WC_REVISION "${DOLPHIN_WC_DESCRIBE} (no further info)") + set(DOLPHIN_WC_BRANCH "master") +endif() + # Architecture detection and arch specific settings message(${CMAKE_SYSTEM_PROCESSOR})