build.bat 627 B

12345678910111213141516171819
  1. @rem Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. @rem file Copyright.txt or https://cmake.org/licensing for details.
  3. set ARCH=%1
  4. set TEST=%2
  5. copy \msvc-%ARCH%.bat \msvc.bat
  6. call \msvc.bat && @echo on || exit /b
  7. set PATH=C:\ninja;%PATH%
  8. mkdir \cmake\src\cmake-build && ^
  9. cd \cmake\src\cmake-build && ^
  10. copy ..\cmake\Utilities\Release\win\x86\cache-%ARCH%.txt CMakeCache.txt && ^
  11. \cmake\cmake\bin\cmake ..\cmake -GNinja && ^
  12. ninja && (
  13. if "%TEST%"=="true" (
  14. bin\ctest --output-on-failure -j %NUMBER_OF_PROCESSORS% -R "^(CMake\.|CMakeLib\.|CMakeServerLib\.|RunCMake\.ctest_memcheck)"
  15. )
  16. )