BUG: make sure ctest sees the output of the cmake run in build and test cases, it was not...

This commit is contained in:
Bill Hoffman 2008-06-18 09:07:53 -04:00
parent 7a977df566
commit bf3598bab4
1 changed files with 8 additions and 0 deletions

View File

@ -143,6 +143,13 @@ void CMakeMessageCallback(const char* m, const char*, bool&, void* s)
*out += "\n";
}
void CMakeProgressCallback(const char*msg, float , void * s)
{
std::string* out = (std::string*)s;
*out += msg;
*out += "\n";
}
//----------------------------------------------------------------------
void CMakeStdoutCallback(const char* m, int len, void* s)
{
@ -210,6 +217,7 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
// should we cmake?
cmake cm;
cm.SetProgressCallback(CMakeProgressCallback, &cmakeOutString);
cm.SetGlobalGenerator(cm.CreateGlobalGenerator(
this->BuildGenerator.c_str()));