diff --git a/setup.sh b/setup.sh
index 222137c3a93cf201528c38a02a105541c757d9c1..17f0ac16ae5cf84dabade24016c439f7635273d7 100644
--- a/setup.sh
+++ b/setup.sh
@@ -53,5 +53,6 @@ CEPCSW_LCG_VERSION=${1}; shift
 if [ -z "$CEPCSW_LCG_VERSION" ]; then
     CEPCSW_LCG_VERSION=97.0.2
 fi
+export CEPCSW_LCG_VERSION
 
 setup-external