mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +03:00
12 lines
291 B
Bash
Executable File
12 lines
291 B
Bash
Executable File
#!/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 && \
|
|
cmake .. -G Ninja && ninja
|