diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-01-27 15:15:01 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-01-27 15:15:01 (GMT) |
commit | 62b310bc52b9feefab32992f7bcebaecbf3aa857 (patch) | |
tree | f1070331289cf33a4e15edcf4f616005f6b3ff8b /Source/CTest/cmCTestConfigureHandler.cxx | |
parent | 14477cee6e8a380e74f4cbf70afe5f3c3bfbd8a2 (diff) | |
download | CMake-62b310bc52b9feefab32992f7bcebaecbf3aa857.zip CMake-62b310bc52b9feefab32992f7bcebaecbf3aa857.tar.gz CMake-62b310bc52b9feefab32992f7bcebaecbf3aa857.tar.bz2 |
ENH: Add compression support to XML files
Diffstat (limited to 'Source/CTest/cmCTestConfigureHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestConfigureHandler.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestConfigureHandler.cxx b/Source/CTest/cmCTestConfigureHandler.cxx index 65950a7..fbf88b4 100644 --- a/Source/CTest/cmCTestConfigureHandler.cxx +++ b/Source/CTest/cmCTestConfigureHandler.cxx @@ -18,6 +18,7 @@ #include "cmCTestConfigureHandler.h" #include "cmCTest.h" +#include "cmGeneratedFileStream.h" #include "cmake.h" #include <cmsys/Process.h> @@ -59,15 +60,15 @@ int cmCTestConfigureHandler::ConfigureDirectory(cmCTest *ctest_inst) int res = 0; if ( !m_CTest->GetShowOnly() ) { - std::ofstream os; - if ( !m_CTest->OpenOutputFile(m_CTest->GetCurrentTag(), "Configure.xml", os) ) + cmGeneratedFileStream os; + if ( !m_CTest->OpenOutputFile(m_CTest->GetCurrentTag(), "Configure.xml", os, true) ) { std::cerr << "Cannot open configure file" << std::endl; return 1; } std::string start_time = m_CTest->CurrentTime(); - std::ofstream ofs; + cmGeneratedFileStream ofs; m_CTest->OpenOutputFile("Temporary", "LastConfigure.log", ofs); res = m_CTest->RunMakeCommand(cCommand.c_str(), &output, &retVal, buildDirectory.c_str(), |