diff options
author | David Cole <david.cole@kitware.com> | 2011-09-07 19:37:07 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-09-07 19:37:07 (GMT) |
commit | 18897d63a5370706312b2b1b8b8900a792ab6056 (patch) | |
tree | 5878f15518a07a696e8586cb0f9905433d952c0e /Source | |
parent | a239fb6c16ab075fdbd2f306b3f34369f9087d43 (diff) | |
parent | 0c28b48d9b46415964ddaabf082dbdc059c770c2 (diff) | |
download | CMake-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.cxx | 7 |
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; } |