mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 11:50:11 -05:00
879d12a29d
The build for Ninja should not be affected by the CMAKE_GENERATOR environment variable.
12 lines
277 B
Bash
Executable File
12 lines
277 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd .gitlab
|
|
|
|
git clone https://github.com/ninja-build/ninja.git ninja-src
|
|
cmake -S ninja-src -B ninja-src/build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
|
|
cmake --build ninja-src/build --parallel --target ninja
|
|
mv ninja-src/build/ninja .
|
|
rm -rf ninja-src
|