mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
cmCTest: Function ReadCustomConfigurationFileTree never fails
This commit is contained in:
committed by
Brad King
parent
3c321b6571
commit
60b822da52
@@ -472,12 +472,7 @@ int cmCTest::Initialize(const std::string& binary_dir,
|
||||
cm.GetCurrentSnapshot().SetDefaultDefinitions();
|
||||
cmGlobalGenerator gg(&cm);
|
||||
cmMakefile mf(&gg, cm.GetCurrentSnapshot());
|
||||
if (!this->ReadCustomConfigurationFileTree(this->Impl->BinaryDir, &mf)) {
|
||||
cmCTestOptionalLog(
|
||||
this, DEBUG, "Cannot find custom configuration file tree" << std::endl,
|
||||
quiet);
|
||||
return 0;
|
||||
}
|
||||
this->ReadCustomConfigurationFileTree(this->Impl->BinaryDir, &mf);
|
||||
|
||||
if (this->Impl->ProduceXML) {
|
||||
// Verify "Testing" directory exists:
|
||||
@@ -3003,8 +2998,8 @@ void cmCTest::SetScheduleType(std::string const& type)
|
||||
this->Impl->ScheduleType = type;
|
||||
}
|
||||
|
||||
int cmCTest::ReadCustomConfigurationFileTree(const std::string& dir,
|
||||
cmMakefile* mf)
|
||||
void cmCTest::ReadCustomConfigurationFileTree(const std::string& dir,
|
||||
cmMakefile* mf)
|
||||
{
|
||||
bool found = false;
|
||||
cmCTestLog(this, DEBUG,
|
||||
@@ -3060,8 +3055,6 @@ int cmCTest::ReadCustomConfigurationFileTree(const std::string& dir,
|
||||
handler.second->PopulateCustomVectors(mf);
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void cmCTest::PopulateCustomVector(cmMakefile* mf, const std::string& def,
|
||||
|
||||
@@ -388,7 +388,7 @@ public:
|
||||
/**
|
||||
* Read the custom configuration files and apply them to the current ctest
|
||||
*/
|
||||
int ReadCustomConfigurationFileTree(const std::string& dir, cmMakefile* mf);
|
||||
void ReadCustomConfigurationFileTree(const std::string& dir, cmMakefile* mf);
|
||||
|
||||
std::vector<std::string>& GetInitialCommandLineArguments();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user