From cb69f83f63bf5ae9a0204a99765236501ecfac71 Mon Sep 17 00:00:00 2001
From: Martin Hierholzer <martin.hierholzer@desy.de>
Date: Fri, 23 Nov 2018 17:27:33 +0100
Subject: [PATCH] allow to pass extre arguments to cmake

---
 vars/helper.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vars/helper.groovy b/vars/helper.groovy
index 6d52cbd..a4d5aba 100644
--- a/vars/helper.groovy
+++ b/vars/helper.groovy
@@ -150,7 +150,7 @@ def doBuild(String label, String buildType) {
       sudo -u msk_jenkins mkdir -p /scratch/build-${JOB_NAME}
       sudo -u msk_jenkins mkdir -p /scratch/install
       cd /scratch/build-${JOB_NAME}
-      sudo -u msk_jenkins cmake /scratch/source -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${buildType} -DSUPPRESS_AUTO_DOC_BUILD=true
+      sudo -u msk_jenkins cmake /scratch/source -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${buildType} -DSUPPRESS_AUTO_DOC_BUILD=true \${CMAKE_EXTRA_ARGS}
       sudo -u msk_jenkins make $MAKEOPTS
     """
   }
-- 
GitLab