build-unit-test-docker: Use separate build directory from source
googletest should use a separate build directory from the source
directory like all of the other cmake builds.
Change-Id: If69f2333ea056e905742157efc24823b5b597bc6
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/build-unit-test-docker.sh b/build-unit-test-docker.sh
index a27aaea..16ce201 100755
--- a/build-unit-test-docker.sh
+++ b/build-unit-test-docker.sh
@@ -164,7 +164,9 @@
RUN curl -L -o googletest.tar.gz https://github.com/google/googletest/archive/ba96d0b1161f540656efdaed035b3c062b60e006.tar.gz
RUN tar -xzf googletest.tar.gz
RUN cd googletest-* && \
-cmake ${CMAKE_FLAGS[@]} -DBUILD_GTEST=ON -DBUILD_GMOCK=ON . && \
+mkdir build && \
+cd build && \
+cmake ${CMAKE_FLAGS[@]} -DBUILD_GTEST=ON -DBUILD_GMOCK=ON .. && \
make && make install
RUN curl -L -O https://github.com/USCiLab/cereal/archive/v1.2.2.tar.gz