Skip to content

Commit 685b1bd

Browse files
authored
Merge pull request #13821 from cxp484/master
FDS Build: Added --no-libs option to build FDS without third-party libs
2 parents aeb949f + 9d9c3b8 commit 685b1bd

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

Build/Scripts/build_thirdparty_libs.sh

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ echo "FIREMODELS=$FIREMODELS"
1616
clean_fds=false
1717
clean_hypre=false
1818
clean_sundials=false
19+
no_libs=false
1920
ARG=""
2021

2122
# Loop through the options
@@ -41,6 +42,11 @@ while [[ $# -gt 0 ]]; do
4142
clean_sundials=true
4243
shift
4344
;;
45+
--no-libs)
46+
no_libs=true
47+
clean_fds=true
48+
shift
49+
;;
4450
--)
4551
shift
4652
break
@@ -71,9 +77,15 @@ fi
7177
# FINISHED WITH CLEANING OPTIONS ###########################################
7278

7379

74-
# build hypre
75-
source ../Scripts/HYPRE/build_hypre.sh confmake.sh $clean_hypre
80+
if [ "$no_libs" == false ]; then
81+
# build hypre
82+
source ../Scripts/HYPRE/build_hypre.sh confmake.sh $clean_hypre
7683

77-
## build sundials
78-
source ../Scripts/SUNDIALS/build_sundials.sh confmake.sh $clean_sundials
84+
# build sundials
85+
source ../Scripts/SUNDIALS/build_sundials.sh confmake.sh $clean_sundials
86+
else
87+
unset SUNDIALS_HOME
88+
unset HYPRE_HOME
89+
echo "Building FDS without third-party libraries."
90+
fi
7991

0 commit comments

Comments
 (0)