diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2013-06-18 17:41:50 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2013-06-24 14:43:20 (GMT) |
commit | 6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6 (patch) | |
tree | 7b2287bef1f05ba8e1a78a708f224eeb148b1361 /Source/cmCoreTryCompile.cxx | |
parent | 0bd82cb1a7be7492df0eb1d9ebb857dc246a0d6d (diff) | |
download | CMake-6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6.zip CMake-6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6.tar.gz CMake-6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6.tar.bz2 |
cmMakefile: Refactor AddCMakeDependFile and AddCMakeOutputFile.
AddCMakeDependFile and AddCMakeOutputFile both store as std::string
and all calling sites use std::string. So instead of creating more
temporary objects, lets just use std::strings.
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index b43a7a7..860417f 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -396,7 +396,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv) // Add dependencies on any non-temporary sources. if(si->find("CMakeTmp") == si->npos) { - this->Makefile->AddCMakeDependFile(si->c_str()); + this->Makefile->AddCMakeDependFile(*si); } } fprintf(fout, ")\n"); |