about summary refs log tree commit diff
path: root/ci/kokoro/docker/build-in-docker-cmake.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/kokoro/docker/build-in-docker-cmake.sh')
-rwxr-xr-xci/kokoro/docker/build-in-docker-cmake.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/kokoro/docker/build-in-docker-cmake.sh b/ci/kokoro/docker/build-in-docker-cmake.sh
index 38e0d3d7885b..4dd9e7eb3dff 100755
--- a/ci/kokoro/docker/build-in-docker-cmake.sh
+++ b/ci/kokoro/docker/build-in-docker-cmake.sh
@@ -58,6 +58,10 @@ if [[ "${CODE_COVERAGE:-}" == "yes" ]]; then
     "-DCMAKE_BUILD_TYPE=Coverage")
 fi
 
+if [[ "${USE_NINJA:-}" == "yes" ]]; then
+  cmake_flags+=( "-GNinja" )
+fi
+
 # Avoid unbound variable error with older bash
 if [[ "${#cmake_flags[@]}" == 0 ]]; then
   cmake "-H${SOURCE_DIR}" "-B${BINARY_DIR}"