From d0f4c0304f87b66d860759cd0833c6ebb5f40d3b Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 6 Jun 2022 13:58:26 -0700 Subject: [PATCH] Work-Around AMReX `M_PI` X-ref: - https://github.com/AMReX-Codes/amrex/pull/2807 - https://github.com/AMReX-Codes/amrex/pull/2794 --- recipe/bld.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipe/bld.bat b/recipe/bld.bat index 9c49395..ffbda5c 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -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 ^