summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio8Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-11-10 13:15:13 (GMT)
committerBrad King <brad.king@kitware.com>2007-11-10 13:15:13 (GMT)
commit34c882a9f8b45350ba8d56d79a94e1602694ef8f (patch)
tree56068700357fbfc8ae093ad2c71a4647e65faf60 /Source/cmGlobalVisualStudio8Generator.cxx
parent082fb6cc26aafda7eed9fc4827b3b1351b139747 (diff)
downloadCMake-34c882a9f8b45350ba8d56d79a94e1602694ef8f.zip
CMake-34c882a9f8b45350ba8d56d79a94e1602694ef8f.tar.gz
CMake-34c882a9f8b45350ba8d56d79a94e1602694ef8f.tar.bz2
ENH: Allow VS 7 project Rebuild and Solution Rebuild to work without re-running CMake for every project during the rebuild.
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio8Generator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx
index c7c5fff..f83c76f 100644
--- a/Source/cmGlobalVisualStudio8Generator.cxx
+++ b/Source/cmGlobalVisualStudio8Generator.cxx
@@ -124,6 +124,8 @@ void cmGlobalVisualStudio8Generator::Generate()
listFiles.erase(new_end, listFiles.end());
// Create a rule to re-run CMake.
+ std::string stampName = cmake::GetCMakeFilesDirectoryPostSlash();
+ stampName += CMAKE_CHECK_BUILD_SYSTEM_TARGET ".vcproj.stamp";
const char* dsprule = mf->GetRequiredDefinition("CMAKE_COMMAND");
cmCustomCommandLine commandLine;
commandLine.push_back(dsprule);
@@ -137,6 +139,8 @@ void cmGlobalVisualStudio8Generator::Generate()
cmLocalGenerator::START_OUTPUT,
cmLocalGenerator::UNCHANGED, true);
commandLine.push_back(argB);
+ commandLine.push_back("--check-stamp-file");
+ commandLine.push_back(stampName.c_str());
cmCustomCommandLines commandLines;
commandLines.push_back(commandLine);
@@ -146,8 +150,6 @@ void cmGlobalVisualStudio8Generator::Generate()
// target.
const char* no_main_dependency = 0;
const char* no_working_directory = 0;
- std::string stampName = cmake::GetCMakeFilesDirectoryPostSlash();
- stampName += CMAKE_CHECK_BUILD_SYSTEM_TARGET ".vcproj.stamp";
mf->AddCustomCommandToOutput(
stampName.c_str(), listFiles,
no_main_dependency, commandLines, "Checking Build System",