From 310a5148f7651cc946b83576a46fba8fb2ecd0de Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 18 Aug 2020 13:55:06 +0200
Subject: [PATCH] [CMake] Fix for submodule regex.

---
 scripts/cmake/SubmoduleSetup.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/cmake/SubmoduleSetup.cmake b/scripts/cmake/SubmoduleSetup.cmake
index 7f8b97fce7e..11990bac6b6 100644
--- a/scripts/cmake/SubmoduleSetup.cmake
+++ b/scripts/cmake/SubmoduleSetup.cmake
@@ -46,7 +46,7 @@ string(REPLACE "\n" ";" SUBMODULES_LIST ${SUBMODULES_STATE})
 
 foreach(SUBMODULE_STATE ${SUBMODULES_LIST})
 
-    string(REGEX MATCH "ThirdParty/[A-Za-z0-9_-]*" SUBMODULE ${SUBMODULE_STATE})
+    string(REGEX MATCH "ThirdParty/[/A-Za-z0-9_-]*" SUBMODULE ${SUBMODULE_STATE})
     if(NOT ${SUBMODULE} IN_LIST REQUIRED_SUBMODULES)
         continue()
     endif()
-- 
GitLab