Description: Substitute changelog entry time for build time
 Upstream compiles a build time string into the program, which breaks
 build reproducibility. This patch adds an override option to
 CMakeLists.txt and the debian/rules uses this to pass in the date of
 the latest debian/changelog entry.
Author: Andreas Bombe <aeb@debian.org>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,7 +49,12 @@
 
 set(LIME_SUITE_LIBVER "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
 set(LIME_SUITE_VERSION "${LIME_SUITE_LIBVER}-${LIME_SUITE_EXTVER}")
-string(TIMESTAMP BUILD_TIMESTAMP "%Y-%m-%d")
+
+if (NOT OVERRIDE_TIMESTAMP)
+    message(FATAL_ERROR "OVERRIDE_TIMESTAMP not set")
+else (NOT OVERRIDE_TIMESTAMP)
+    string(TIMESTAMP BUILD_TIMESTAMP "${OVERRIDE_TIMESTAMP}")
+endif (NOT OVERRIDE_TIMESTAMP)
 
 ########################################################################
 ## compiler flags
