summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-12-21 21:42:32 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-12-21 21:42:32 (GMT)
commit5aad7bf2d4d9c5fdf15e56c943ca66986e9e68e9 (patch)
tree522b51f5364e1bffd0152a064911cf33f9d88926 /Source/cmCTest.cxx
parentc424267cc1c4462554f4f99387a8a3347ea593a2 (diff)
downloadCMake-5aad7bf2d4d9c5fdf15e56c943ca66986e9e68e9.zip
CMake-5aad7bf2d4d9c5fdf15e56c943ca66986e9e68e9.tar.gz
CMake-5aad7bf2d4d9c5fdf15e56c943ca66986e9e68e9.tar.bz2
Make new web api safe for bootstrap build.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index d886f4b..01f5836 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -320,6 +320,7 @@ bool cmCTest::ShouldCompressTestOutput()
//----------------------------------------------------------------------------
std::string cmCTest::GetCDashVersion()
{
+#ifdef CMAKE_BUILD_WITH_CMAKE
//First query the server. If that fails, fall back to the local setting
std::string response;
std::string url = "http://";
@@ -328,6 +329,9 @@ std::string cmCTest::GetCDashVersion()
int res = cmSystemTools::HTTPRequest(url, cmSystemTools::HTTP_GET, response);
return res ? this->GetCTestConfiguration("CDashVersion") : response;
+#else
+ return this->GetCTestConfiguration("CDashVersion");
+#endif
}
//----------------------------------------------------------------------------