summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-07-12 12:50:09 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-07-12 12:50:09 (GMT)
commit2dc914c8399c038946dd4569b4ff435ad9618426 (patch)
tree18a15d7da0c0daae215ce556f07938a9fe5fa2af /Source/cmCTest.cxx
parent0afdb6e1cc316ddd3931c94ec1304b407be0b319 (diff)
downloadCMake-2dc914c8399c038946dd4569b4ff435ad9618426.zip
CMake-2dc914c8399c038946dd4569b4ff435ad9618426.tar.gz
CMake-2dc914c8399c038946dd4569b4ff435ad9618426.tar.bz2
BUG: Fix problem with visual studio in release mode
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 50234f7..2ccef4a 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -398,8 +398,8 @@ bool cmCTest::InitializeFromCommand(cmCTestCommand* command, bool first)
return true;
}
- const char* src_dir = this->GetCTestConfiguration("SourceDirectory").c_str();
- const char* bld_dir = this->GetCTestConfiguration("BuildDirectory").c_str();
+ std::string src_dir = this->GetCTestConfiguration("SourceDirectory").c_str();
+ std::string bld_dir = this->GetCTestConfiguration("BuildDirectory").c_str();
m_DartVersion = 1;
m_SubmitFiles.clear();
@@ -444,7 +444,7 @@ bool cmCTest::InitializeFromCommand(cmCTestCommand* command, bool first)
}
}
- if ( !this->Initialize(bld_dir, true, false) )
+ if ( !this->Initialize(bld_dir.c_str(), true, false) )
{
if ( this->GetCTestConfiguration("NightlyStartTime").empty() && first)
{