diff --git a/make_cp2k.sh b/make_cp2k.sh index d7b238062c..9d9ae3a52e 100755 --- a/make_cp2k.sh +++ b/make_cp2k.sh @@ -540,11 +540,13 @@ if [[ ! -d "${SPACK_BUILD_PATH}" ]]; then # Concretize CP2K dependencies if ! spack -e "${CP2K_ENV}" --no-user-config --no-system-config concretize --fresh; then - echo "" - echo "HINT: The --no_externals flag can help to resolve conflicts with outdated" - echo " packages on the host system, e.g. old python or gcc versions" - echo "" - ${EXIT_CMD} 1 + if [[ "${USE_EXTERNALS}" == "yes" ]]; then + echo "" + echo "HINT: The (-ue | --use_externals) flags can cause conflicts with outdated" + echo " packages on the host system, e.g. old python or gcc versions" + echo "" + ${EXIT_CMD} 1 + fi fi # Create spack makefile for all dependencies