diff options
author | Yves Frederix <yves.frederix@gmail.com> | 2016-09-16 15:50:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-17 18:53:42 (GMT) |
commit | 427b6da9e5aa2e1a8570259573b1faa15e4169df (patch) | |
tree | c9a2281849dde22f953dbf76ed557f613275d643 /Source/cmGlobalVisualStudio8Generator.cxx | |
parent | ab4a9a98266fb29008cecc9649a91fc844c541f5 (diff) | |
download | CMake-427b6da9e5aa2e1a8570259573b1faa15e4169df.zip CMake-427b6da9e5aa2e1a8570259573b1faa15e4169df.tar.gz CMake-427b6da9e5aa2e1a8570259573b1faa15e4169df.tar.bz2 |
VS: Teach `cmake --build` to reconfigure if needed before building
Visual Studio's build system does not cleanly handle itself being
re-generated during the build. Teach `cmake --build` to check whether
the build system needs to be re-generated before launching the native
build tool.
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx index 64808c9..cf37c2c 100644 --- a/Source/cmGlobalVisualStudio8Generator.cxx +++ b/Source/cmGlobalVisualStudio8Generator.cxx @@ -161,6 +161,11 @@ void cmGlobalVisualStudio8Generator::GetDocumentation( entry.Brief = "Generates Visual Studio 8 2005 project files."; } +std::string cmGlobalVisualStudio8Generator::GetGenerateStampList() +{ + return "generate.stamp.list"; +} + void cmGlobalVisualStudio8Generator::Configure() { this->cmGlobalVisualStudio7Generator::Configure(); @@ -244,7 +249,7 @@ bool cmGlobalVisualStudio8Generator::AddCheckTarget() // Create a list of all stamp files for this project. std::vector<std::string> stamps; std::string stampList = cmake::GetCMakeFilesDirectoryPostSlash(); - stampList += "generate.stamp.list"; + stampList += cmGlobalVisualStudio8Generator::GetGenerateStampList(); { std::string stampListFile = generators[0]->GetMakefile()->GetCurrentBinaryDirectory(); |