From 29810741f3357244590d0f5a5aefd579d80c0e3c Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@debian.org>
Date: Thu, 12 Nov 2026 15:42:56 -0800
Subject: [PATCH 2/2] gatb-core/CMakeLists.txt: Use TIMESTAMP to set
 gatb-core-date.

---
 mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt b/mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt
index a701356..5772bbe 100644
--- a/mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt
+++ b/mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt
@@ -39,7 +39,9 @@ include (GetDate)
 DefineInteger (k)
 
 # We get the current date
-GetCurrentDate (gatb-core-date) 
+# Use TIMESTAMP, which respects SOURCE_DATE_EPOCH if set:
+# https://reproducible-builds.org/docs/source-date-epoch/
+string (TIMESTAMP gatb-core-date "%Y-%m-%d %H:%M:%S" UTC)
 
 ################################################################################
 # COMPILER DEFINITIONS
-- 
2.47.3

