Skip to content

Commit

Permalink
Merge pull request #13827 from cxp484/master
Browse files Browse the repository at this point in the history
FDS Build: Add --no-libs option for WINDOWS
  • Loading branch information
cxp484 authored Dec 3, 2024
2 parents 6fcf6bc + 8eeaad1 commit ab3df28
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions Build/Scripts/build_thirdparty_libs.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ call ..\Scripts\set_compilers.bat
set clean_hypre=
set clean_sundials=
set clean_fds=
set no_libs=
set stopscript=0
set FDS_BUILDDIR=%CD%

Expand Down Expand Up @@ -42,6 +43,11 @@ goto eof
set clean_sundials=--clean-sundials
set valid=1
)
if /I "%1" EQU "--no-libs" (
set no_libs=--no-libs
set clean_fds=--clean-fds
set valid=1
)
if /I "%1" EQU "-help" (
call :usage
set stopscript=1
Expand Down Expand Up @@ -74,6 +80,7 @@ echo --clean-all - rebuild all libraries, remove .obj and .mod files from t
echo --clean-fds - remove .obj and .mod files from the fds build directory
echo --clean-hypre - rebuild hypre library
echo --clean-sundials - rebuild sundials library
echo --no-libs - build without thirdparty libs
echo --help - display this message
exit /b

Expand All @@ -91,13 +98,17 @@ set SCRIPTDIR=%~dp0
cd %SCRIPTDIR%
SET SCRIPTDIR=%CD%

if "x%no_libs%" == "x" (
:: Call HYPRE and SUNDIALS build script
cd %SCRIPTDIR%\HYPRE
call build_hypre %clean_hypre%


::Call HYPRE and SUNDIALS build script
cd %SCRIPTDIR%\HYPRE
call build_hypre %clean_hypre%

cd %SCRIPTDIR%\SUNDIALS
call build_sundials %clean_sundials%
cd %SCRIPTDIR%\SUNDIALS
call build_sundials %clean_sundials%
) else (
set SUNDIALS_HOME=
set HYPRE_HOME=
echo Building FDS without third-party libraries.
)

cd %CURDIR_3RDPARTY%

0 comments on commit ab3df28

Please sign in to comment.