mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 20:24:35 +03:00
check if ninja supported by cmake
This commit is contained in:
@@ -1,2 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Travis-ci cmake version doesn't support ninja, so first check if it's supported
|
||||||
|
ninja_supported=`cmake --help | grep Ninja`
|
||||||
|
|
||||||
|
if [ -z $ninja_supported ]; then
|
||||||
|
echo "Ninja not supported"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p build.ninja && cd build.ninja && \
|
mkdir -p build.ninja && cd build.ninja && \
|
||||||
cmake .. -G Ninja && ninja
|
cmake .. -G Ninja && ninja
|
||||||
|
|||||||
Reference in New Issue
Block a user