master
/ miniconda3 / pkgs / fmt-9.1.0-hdb19cb5_0 / info / recipe / bld.bat

bld.bat @a8e0244 raw · history · blame

:: cmd
echo "Building %PKG_NAME%."


:: Isolate the build.
mkdir Build-%PKG_NAME%
cd Build-%PKG_NAME%
if errorlevel 1 exit /b 1


:: Generate the build files.
echo "Generating the build files."
cmake .. -G"Ninja" %CMAKE_ARGS% ^
      -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
      -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
      -DCMAKE_BUILD_TYPE=Release ^
      -DFMT_TEST=ON ^
      -DFMT_DOC=OFF ^
      -DBUILD_SHARED_LIBS=TRUE ^
      -DFMT_INSTALL=ON


:: Build.
echo "Building..."
ninja
if errorlevel 1 exit 1


:: Perforem tests.
echo "Testing..."
ninja test
if errorlevel 1 exit 1


:: Install.
echo "Installing..."
ninja install
if errorlevel 1 exit 1


:: Error free exit.
echo "Error free exit!"
exit 0