diff options
author | Brad King <brad.king@kitware.com> | 2007-11-09 17:05:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-11-09 17:05:03 (GMT) |
commit | f9322d188bf8f441a2511ae060bd2a56439deec7 (patch) | |
tree | 081e96171ce8d4683ef4368eb739c2548980b672 /Source/cmGlobalVisualStudio8Generator.cxx | |
parent | c5b01a7daff1657063b938b60ee67bc710e07d6c (diff) | |
download | CMake-f9322d188bf8f441a2511ae060bd2a56439deec7.zip CMake-f9322d188bf8f441a2511ae060bd2a56439deec7.tar.gz CMake-f9322d188bf8f441a2511ae060bd2a56439deec7.tar.bz2 |
ENH: Converted vcproj file generation to use cmGeneratedFileStream for atomic replacement. Replaced the vcproj.cmake copy of the file with a simple vcproj.stamp timestamp file to preserve previous rerun-without-reload behavior.
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx index 335dd4c..c7c5fff 100644 --- a/Source/cmGlobalVisualStudio8Generator.cxx +++ b/Source/cmGlobalVisualStudio8Generator.cxx @@ -146,20 +146,21 @@ 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( - CMAKE_CHECK_BUILD_SYSTEM_TARGET ".vcproj.cmake", listFiles, + stampName.c_str(), listFiles, no_main_dependency, commandLines, "Checking Build System", no_working_directory, true); - if(cmSourceFile* file = mf->GetSource(CMAKE_CHECK_BUILD_SYSTEM_TARGET - ".vcproj.cmake.rule")) + std::string ruleName = stampName; + ruleName += ".rule"; + if(cmSourceFile* file = mf->GetSource(ruleName.c_str())) { tgt->AddSourceFile(file); } else { - cmSystemTools::Error("Error adding rule for " - CMAKE_CHECK_BUILD_SYSTEM_TARGET - ".vcproj.cmake"); + cmSystemTools::Error("Error adding rule for ", stampName.c_str()); } } } |