From 9d9c3b859248623d6c5e08174d248ff969507aca Mon Sep 17 00:00:00 2001 From: Chandan Paul Date: Mon, 2 Dec 2024 10:50:10 -0500 Subject: [PATCH] FDS Build: Added --no-libs option to build FDS without third-party libs --- Build/Scripts/build_thirdparty_libs.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Build/Scripts/build_thirdparty_libs.sh b/Build/Scripts/build_thirdparty_libs.sh index 5b990f5ff06..7fbeb315e9a 100755 --- a/Build/Scripts/build_thirdparty_libs.sh +++ b/Build/Scripts/build_thirdparty_libs.sh @@ -16,6 +16,7 @@ echo "FIREMODELS=$FIREMODELS" clean_fds=false clean_hypre=false clean_sundials=false +no_libs=false ARG="" # Loop through the options @@ -41,6 +42,11 @@ while [[ $# -gt 0 ]]; do clean_sundials=true shift ;; + --no-libs) + no_libs=true + clean_fds=true + shift + ;; --) shift break @@ -71,9 +77,15 @@ fi # FINISHED WITH CLEANING OPTIONS ########################################### -# build hypre -source ../Scripts/HYPRE/build_hypre.sh confmake.sh $clean_hypre +if [ "$no_libs" == false ]; then + # build hypre + source ../Scripts/HYPRE/build_hypre.sh confmake.sh $clean_hypre -## build sundials -source ../Scripts/SUNDIALS/build_sundials.sh confmake.sh $clean_sundials + # build sundials + source ../Scripts/SUNDIALS/build_sundials.sh confmake.sh $clean_sundials +else + unset SUNDIALS_HOME + unset HYPRE_HOME + echo "Building FDS without third-party libraries." +fi