summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-10-31 20:34:08 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-10-31 20:34:08 (GMT)
commitd8233e58372e18200a83e66732bc7918aadb06f4 (patch)
tree5c9d3914c44832aa1f31b498861f6afb549da815 /Source
parentbd394d42e6adda56d36236b33b61338e76e810ed (diff)
parent388a3216fc9d22531b40963a81d70900c602c7fc (diff)
downloadCMake-d8233e58372e18200a83e66732bc7918aadb06f4.zip
CMake-d8233e58372e18200a83e66732bc7918aadb06f4.tar.gz
CMake-d8233e58372e18200a83e66732bc7918aadb06f4.tar.bz2
Merge topic 'xcode-ReRunCMake-full-path'
388a321 Xcode: Fix ReRunCMake.make path to cmake.check_cache (#13603)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 30d8f18..5b2ddd8 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -495,8 +495,12 @@ void cmGlobalXCodeGenerator::CreateReRunCMakeFile(
(this->CurrentReRunCMakeMakefile.c_str());
makefileStream.SetCopyIfDifferent(true);
makefileStream << "# Generated by CMake, DO NOT EDIT\n";
- makefileStream << cmake::GetCMakeFilesDirectoryPostSlash();
- makefileStream << "cmake.check_cache: ";
+ std::string checkCache = mf->GetHomeOutputDirectory();
+ checkCache += "/";
+ checkCache += cmake::GetCMakeFilesDirectoryPostSlash();
+ checkCache += "cmake.check_cache";
+ makefileStream << this->ConvertToRelativeForMake(checkCache.c_str())
+ << ": ";
for(std::vector<std::string>::const_iterator i = lfiles.begin();
i != lfiles.end(); ++i)
{