Warning instead of exception for cmake
authorliyuqian <liyuqian@google.com>
Thu, 12 May 2016 17:21:17 +0000 (10:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 May 2016 17:21:17 +0000 (10:21 -0700)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1971953003

Review-Url: https://codereview.chromium.org/1971953003

platform_tools/android/apps/build.gradle

index 40e085cf5f25c45681d118a81f5aeef511a6e9d3..901e3295eae0f23e87a11fd8b43115a1f83cae95 100644 (file)
@@ -77,8 +77,7 @@ def getPathWithDeps(requireCMake = false) {
     if (requireCMake) {
         String cmakePath = getSDKPath() + "/cmake/bin"
         if (!file(cmakePath).exists()) {
-            throw new GradleScriptException("cmake not found! Please install the android SDK version" +
-                                        " of cmake.", null);
+            logger.warn("cmake not found! Please install the android SDK version of cmake.");
         }
         if (!path.contains(cmakePath)) {
             path = cmakePath + ":" + path