Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions conda_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ source $CONDA_BASE/etc/profile.d/conda.sh
conda activate $envname

if [[ -d build ]] ; then
echo "Warning- using existing build directory"
echo "Warning- using existing build directory; clearing CMakeCache.txt to force a fresh configure against $CONDA_PREFIX"
rm -f build/CMakeCache.txt
else
mkdir build
fi
Expand All @@ -118,7 +119,11 @@ echo "*** Configuring LOOS ***"
cmake -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} ..

echo "*** Building LOOS ***"
cmake --build . -j${numprocs}
set -o pipefail
if ! cmake --build . -j${numprocs} 2>&1 | tee build.log ; then
echo "*** LOOS build failed; full output in build/build.log ***"
exit 1
fi

if [[ ${do_install} ]]; then
echo "*** Installing LOOS ***"
Expand Down
Loading