Skip to content

Commit

Permalink
Merge pull request #499 from jsberg-bnl/check-subdir-presence
Browse files Browse the repository at this point in the history
Only attempt to build subdirectories that are present
  • Loading branch information
DavidSagan committed Sep 19, 2023
2 parents ae1aa90 + 8a115df commit dddab23
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions util/Distribution_User_Utility_Wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ if ( [[ "${CONDA_BUILD}" ]] ) ; then
[ "${ACC_PLOT_PACKAGE}" == "plplot" ] && DIRLIST=( plplot ${DIRLIST[*]} )
else
# List of Project Directories - Order here matters!
DIRLIST=( ${ACC_PLOT_PACKAGE_DIR} hdf5 fftw lapack lapack95 gsl fgsl forest xraylib sim_utils bmad tao cpp_bmad_interface code_examples bsim util_programs lux regression_tests )

DIRLIST=(${ACC_PLOT_PACKAGE_DIR})
for d in hdf5 fftw lapack lapack95 gsl fgsl forest xraylib sim_utils bmad tao cpp_bmad_interface code_examples bsim util_programs lux regression_tests
do
[ -d "$DIST_BASE_DIR/$d" ] && DIRLIST=(${DIRLIST[*]} $d)
done
# Build OpenMPI, if requested
[ "${ACC_ENABLE_MPI}" == "Y" ] && DIRLIST=( openmpi ${DIRLIST[*]} )
fi
Expand Down

0 comments on commit dddab23

Please sign in to comment.