use correct expression for source folder. small output tweak.

This commit is contained in:
Axel Kohlmeyer 2020-06-10 12:41:20 -04:00
parent 6891fa2610
commit 1a1cc99144
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
2 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ RegisterStyles(${LAMMPS_SOURCE_DIR})
########################################################
foreach(PKG ${STANDARD_PACKAGES} ${SUFFIX_PACKAGES})
if(PKG_${PKG})
FetchPotentials(${${PKG}_SOURCES_DIR} ${LAMMPS_POTENTIALS_DIR})
FetchPotentials(${LAMMPS_SOURCE_DIR}/${PKG} ${LAMMPS_POTENTIALS_DIR})
endif()
endforeach()

View File

@ -96,7 +96,7 @@ function(FetchPotentials pkgfolder potfolder)
math(EXPR plusone "${blank}+1")
string(SUBSTRING ${line} 0 ${blank} pot)
string(SUBSTRING ${line} ${plusone} -1 sum)
message("Checking whether to download external potential ${pot} from ${LAMMPS_POTENTIALS_URL}")
message(STATUS "Checking external potential ${pot} from ${LAMMPS_POTENTIALS_URL}")
file(DOWNLOAD "${LAMMPS_POTENTIALS_URL}/${pot}.${sum}" "${LAMMPS_POTENTIALS_DIR}/${pot}"
EXPECTED_HASH MD5=${sum} SHOW_PROGRESS)
endforeach()