diff --git a/templates/common/build_icon.sh b/templates/common/build_icon.sh index 68c7d1fbb50317a04545de77813fa2425def284f..977619db55c6aa878c38e34cec5a58b9e9c602b8 100644 --- a/templates/common/build_icon.sh +++ b/templates/common/build_icon.sh @@ -34,7 +34,7 @@ if [ ! -z "$SPACK_BUILD_ICON" ]; then fi spack install $SPACK_BUILD_ICON - spack load $SPACK_BUILD_ICON + spack load "icon-nwp@${ICON_VERSION}%${COMPILER}" else echo "\%icon.spack_cmd\% is not defined. If you want to compile icon with spack, please provide a spack compile instruction string in your build.yml" fi