Skip to content

Commit a00d112

Browse files
authored
Merge pull request #13793 from cxp484/master
FDS Build: Set thirdparty fortran compiler based on INTEL_IFORT
2 parents 0b52ed4 + d0ca54d commit a00d112

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

Build/Scripts/HYPRE/build_hypre.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ cd %BUILDDIR%
150150
cmake ..\ ^
151151
-G "MinGW Makefiles" ^
152152
-DCMAKE_INSTALL_PREFIX="%INSTALLDIR%" ^
153-
-DCMAKE_C_COMPILER=icx ^
153+
-DCMAKE_C_COMPILER=%CC% ^
154154
-DCMAKE_C_FLAGS="/DWIN32 -O3 /fp:precise" ^
155155
-DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" ^
156156
-DCMAKE_MAKE_PROGRAM="%CMAKE_MAKE_PROGRAM%" ^

Build/Scripts/SUNDIALS/build_sundials.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ cmake ..\ ^
130130
-DCMAKE_INSTALL_PREFIX="%INSTALLDIR%" ^
131131
-DEXAMPLES_INSTALL_PATH="%INSTALLDIR%\examples" ^
132132
-DBUILD_FORTRAN_MODULE_INTERFACE=ON ^
133-
-DCMAKE_C_COMPILER=icx ^
134-
-DCMAKE_Fortran_COMPILER=ifx ^
133+
-DCMAKE_C_COMPILER=%CC% ^
134+
-DCMAKE_Fortran_COMPILER=%FC% ^
135135
-DEXAMPLES_ENABLE_C=OFF ^
136136
-DEXAMPLES_ENABLE_CXX=OFF ^
137137
-DEXAMPLES_ENABLE_F2003=OFF ^

Build/Scripts/build_thirdparty_libs.bat

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,25 @@ set SCRIPTDIR=%~dp0
8888
cd %SCRIPTDIR%
8989
SET SCRIPTDIR=%CD%
9090

91+
92+
:: Decide C and FORTRAN COMPILER for third-party builds
93+
set CC=icx
94+
if "x%INTEL_IFORT%" == "x" (
95+
set FC=ifx
96+
) else (
97+
set FC=%INTEL_IFORT%
98+
)
99+
echo.
100+
echo Third-party libs C Compiler=%CC%
101+
echo Third-party libs Fortran Compiler=%FC%
102+
echo.
103+
104+
105+
::Call HYPRE and SUNDIALS build script
91106
cd %SCRIPTDIR%\HYPRE
92107
call build_hypre %clean_hypre%
93108

94109
cd %SCRIPTDIR%\SUNDIALS
95110
call build_sundials %clean_sundials%
96111

97-
cd %CURDIR_3RDPARTY%
112+
cd %CURDIR_3RDPARTY%

0 commit comments

Comments
 (0)