summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-04 16:38:15 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-04 16:38:15 (GMT)
commit053519b390ced4e2ed702f00a00d23ad344a3da3 (patch)
tree0bacbebe20ad17e3cb8d38511ff3707b5d0eae91 /Source
parent524bb1e36e75b3e2057ebaae1b9ca281dd2d1b57 (diff)
downloadCMake-053519b390ced4e2ed702f00a00d23ad344a3da3.zip
CMake-053519b390ced4e2ed702f00a00d23ad344a3da3.tar.gz
CMake-053519b390ced4e2ed702f00a00d23ad344a3da3.tar.bz2
Simplify VS CMake re-run check
When CMake is invoked by the VS IDE re-run rule we compute whether or not CMake really needs to re-run based on some timestamp helper files. Previously we assumed that if the main generate.stamp file exists then VS has correctly detected that the file is out of date. However, this assumption is too aggressive and re-runs CMake unnecessarily sometimes. This commit removes the assumption and always checks timestamps itself. The change breaks the explicit user re-run request (R-click -> Compile) but only in cases when the build system is already up to date.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 5c6a7c6..7866fb2 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -3880,17 +3880,6 @@ int cmake::GetSystemInformation(std::vector<std::string>& args)
//----------------------------------------------------------------------------
static bool cmakeCheckStampFile(const char* stampName)
{
- // If the stamp file still exists then it must really be out of
- // date.
- if(cmSystemTools::FileExists(stampName))
- {
- // Notify the user why CMake is re-running. It is safe to
- // just print to stdout here because this code is only reachable
- // through an undocumented flag used by the VS generator.
- std::cout << "CMake is re-running because build system is out-of-date.\n";
- return false;
- }
-
// The stamp file does not exist. Use the stamp dependencies to
// determine whether it is really out of date. This works in
// conjunction with cmLocalVisualStudio7Generator to avoid