[arrayfire] 153/284: Set revision to "default" when git is not available
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.
commit 775747e383a3bd91204b785cc4c75daa62031520
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Mon Jan 4 10:19:35 2016 -0500
Set revision to "default" when git is not available
This can happen when compiling releases which are downloaded without git files
---
CMakeModules/Version.cmake | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/CMakeModules/Version.cmake b/CMakeModules/Version.cmake
index 4e0ddb5..8d5b575 100644
--- a/CMakeModules/Version.cmake
+++ b/CMakeModules/Version.cmake
@@ -32,6 +32,11 @@ EXECUTE_PROCESS(
OUTPUT_STRIP_TRAILING_WHITESPACE
)
+IF(NOT GIT_COMMIT_HASH)
+ MESSAGE(STATUS "No git. Setting hash to default")
+ SET(GIT_COMMIT_HASH "default")
+ENDIF()
+
CONFIGURE_FILE(
${CMAKE_MODULE_PATH}/version.h.in
${CMAKE_SOURCE_DIR}/include/af/version.h
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list