Use BUILD_TYPE in cmake_build.
authorrmistry <rmistry@google.com>
Mon, 25 Apr 2016 13:29:21 +0000 (06:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 25 Apr 2016 13:29:21 +0000 (06:29 -0700)
Build files were directly written to the out directory. This change makes them go to the expected out/{Release, Debug} directory.

BUG=skia:5160

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1916773002
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot

Review URL: https://codereview.chromium.org/1916773002

cmake/cmake_build

index 861453e434aedd2b8f89050a02b106dcc0a0e140..f2cb9bf1bf33a43618331337fc362462ab941d39 100755 (executable)
@@ -26,8 +26,8 @@ make -j $cores cmake
 popd
 
 echo "Building with bootstrapped CMake"
-mkdir -p $SKIA_OUT
-pushd $SKIA_OUT
+mkdir -p $SKIA_OUT/$BUILDTYPE
+pushd $SKIA_OUT/$BUILDTYPE
 $here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE $here -G Ninja
 ninja
 popd