From b774655b095fda724076f13f270e3625af2b980d Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Fri, 13 Mar 2020 11:25:07 +0100
Subject: [PATCH] [Jenkins] Run CMake twice on Linux job.

Workaround some MGIS CMake logic flaws:

On the first CMake run MGIS_HAVE_TFEL is false and therefore the
mgis test executable were not added to the build.

See line 222 of ThirdParty/MGIS/CMakeLists.txt
---
 Jenkinsfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 080cb3621a2..d7ec3364262 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -116,6 +116,10 @@ pipeline {
                   '-DOGS_USE_MFRONT=ON ' +
                   '-DOGS_USE_PYTHON=ON '
               }
+              // Workaround some MGIS CMake logic flaws
+              configure {
+                keepDir = true
+              }
               build {
                 target="package"
                 log="build1.log"
-- 
GitLab