Merge topic 'ctest-no-cdash-issue-12618'
52f937a
CTest: Do not get CDash version without drop site (#12618)
This commit is contained in:
commit
765e9d30ae
|
@ -440,8 +440,12 @@ std::string cmCTest::GetCDashVersion()
|
||||||
std::string cdashUri = this->GetCTestConfiguration("DropLocation");
|
std::string cdashUri = this->GetCTestConfiguration("DropLocation");
|
||||||
cdashUri = cdashUri.substr(0, cdashUri.find("/submit.php"));
|
cdashUri = cdashUri.substr(0, cdashUri.find("/submit.php"));
|
||||||
|
|
||||||
url += cdashUri + "/api/getversion.php";
|
int res = 1;
|
||||||
int res = cmCTest::HTTPRequest(url, cmCTest::HTTP_GET, response, "", "", 3);
|
if ( ! cdashUri.empty() )
|
||||||
|
{
|
||||||
|
url += cdashUri + "/api/getversion.php";
|
||||||
|
res = cmCTest::HTTPRequest(url, cmCTest::HTTP_GET, response, "", "", 3);
|
||||||
|
}
|
||||||
|
|
||||||
return res ? this->GetCTestConfiguration("CDashVersion") : response;
|
return res ? this->GetCTestConfiguration("CDashVersion") : response;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue