diff --git a/templates/build_icon.sh b/templates/build_icon.sh
index def60f04aa4df0f420131b9475135deb352c50d6..f2e7ce602e69f89abfef4a609f76860d12ff43b5 100644
--- a/templates/build_icon.sh
+++ b/templates/build_icon.sh
@@ -26,7 +26,7 @@ source ${SPACK_ENV}
 
 # If the model is not installed, install it.
 if [ $( spack find icon-nwp@${ICON_VERSION} &> /dev/null ; echo $? ) -ne 0 ]; then
-  spack install icon-nwp@${ICON_VERSION}
+  spack install icon-nwp@${ICON_VERSION} ^mpi+slurm
 fi
 
 if [ $( spack find icon-nwp@${ICON_VERSION} &> /dev/null ; echo $? ) -ne 0 ]; then