From c05ac32d5f907983d04c4ebc058cd91733e0a0a0 Mon Sep 17 00:00:00 2001
From: Franck Galpin <franck.galpin@interdigital.com>
Date: Wed, 18 Jan 2023 22:18:29 +0000
Subject: [PATCH] use the submodule hash to retrieve the correct SADL commit
 instead of the latest version

---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index a4b56e0d3b..589d47ddd9 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ BUILD_SCRIPT := $(CURDIR)/cmake/CMakeBuild/bin/cmake.py
 
 TARGETS := CommonLib DecoderAnalyserApp DecoderAnalyserLib DecoderApp DecoderLib 
 TARGETS += EncoderApp EncoderLib Utilities SEIRemovalApp StreamMergeApp
+SADL_HASH := "dedd0095bd3f8ca0a760eb0649b028a87b84dcfd" # hard coded because of windows $(shell git submodule status | grep sadl | cut -d' ' -f2)
 
 ifeq ($(OS),Windows_NT)
   ifneq ($(MSYSTEM),)
@@ -180,5 +181,7 @@ realclean:
 sadlclean:
 	$(RM) -rf sadl
 	git clone https://mpeg:${MPEGPWD}@vcgit.hhi.fraunhofer.de/jvet-ahg-nnvc/sadl.git sadl
+	cd sadl && git checkout $(SADL_HASH)
+	
 
 .NOTPARALLEL:
-- 
GitLab