forked from lijiext/lammps
use correct expression for source folder. small output tweak.
This commit is contained in:
parent
6891fa2610
commit
1a1cc99144
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue