summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-09-07 19:37:07 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-09-07 19:37:07 (GMT)
commit18897d63a5370706312b2b1b8b8900a792ab6056 (patch)
tree5878f15518a07a696e8586cb0f9905433d952c0e /Source
parenta239fb6c16ab075fdbd2f306b3f34369f9087d43 (diff)
parent0c28b48d9b46415964ddaabf082dbdc059c770c2 (diff)
downloadCMake-18897d63a5370706312b2b1b8b8900a792ab6056.zip
CMake-18897d63a5370706312b2b1b8b8900a792ab6056.tar.gz
CMake-18897d63a5370706312b2b1b8b8900a792ab6056.tar.bz2
Merge topic 'save-cache-at-end-of-generate'
0c28b48 CMake: Add SaveCache at the end of successful Generate calls
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 2b8c718..86fd069 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2531,6 +2531,13 @@ int cmake::Generate()
this->ReportUndefinedPropertyAccesses
(this->GetProperty("REPORT_UNDEFINED_PROPERTIES"));
}
+ // Save the cache again after a successful Generate so that any internal
+ // variables created during Generate are saved. (Specifically target GUIDs
+ // for the Visual Studio and Xcode generators.)
+ if ( this->GetWorkingMode() == NORMAL_MODE )
+ {
+ this->CacheManager->SaveCache(this->GetHomeOutputDirectory());
+ }
return 0;
}