Skip to content

Commit

Permalink
Work-Around AMReX M_PI
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Jun 6, 2022
1 parent 55222f0 commit d0f4c03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
if not exist %LIBRARY_PREFIX%\bin md %LIBRARY_PREFIX%\bin
if errorlevel 1 exit 1

:: <=22.07 work-around for
:: https://github.com/AMReX-Codes/amrex/pull/2807
echo "CXXFLAGS: %CXXFLAGS%"
set CXXFLAGS="%CXXFLAGS% /D_USE_MATH_DEFINES"
echo "CXXFLAGS: %CXXFLAGS%"

for %%d in (1 2 3 RZ) do (
cmake ^
-S %SRC_DIR% -B build ^
Expand Down

0 comments on commit d0f4c03

Please sign in to comment.