diff options
author | Brad King <brad.king@kitware.com> | 2015-04-14 19:48:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-04-15 13:08:57 (GMT) |
commit | 85c2626babf40d704f133fe49506d25f0a674b5f (patch) | |
tree | 1c039701608f5eb18a26dd1708578bc90a1ff24c /Source/cmGlobalVisualStudio6Generator.cxx | |
parent | cdc53b62c20605467334ecb80c474533e04ff26c (diff) | |
download | CMake-85c2626babf40d704f133fe49506d25f0a674b5f.zip CMake-85c2626babf40d704f133fe49506d25f0a674b5f.tar.gz CMake-85c2626babf40d704f133fe49506d25f0a674b5f.tar.bz2 |
Deprecate Visual Studio 6 generator
Update documentation to mark the generator deprecated. Add a warning at
the end of generation plus an option to turn off the warning.
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio6Generator.cxx | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx index 62a308e..e2b2bbd4 100644 --- a/Source/cmGlobalVisualStudio6Generator.cxx +++ b/Source/cmGlobalVisualStudio6Generator.cxx @@ -185,6 +185,22 @@ void cmGlobalVisualStudio6Generator::Generate() // Now write out the DSW this->OutputDSWFile(); + + if (!this->CMakeInstance->GetIsInTryCompile()) + { + const char* cmakeWarnVS6 = + this->CMakeInstance->GetState()->GetCacheEntryValue("CMAKE_WARN_VS6"); + if (!cmakeWarnVS6 || !cmSystemTools::IsOff(cmakeWarnVS6)) + { + this->CMakeInstance->IssueMessage( + cmake::WARNING, + "The \"Visual Studio 6\" generator is deprecated " + "and will be removed in a future version of CMake." + "\n" + "Add CMAKE_WARN_VS6=OFF to the cache to disable this warning." + ); + } + } } // Write a DSW file to the stream @@ -411,7 +427,7 @@ void cmGlobalVisualStudio6Generator ::GetDocumentation(cmDocumentationEntry& entry) { entry.Name = cmGlobalVisualStudio6Generator::GetActualName(); - entry.Brief = "Generates Visual Studio 6 project files."; + entry.Brief = "Deprecated. Generates Visual Studio 6 project files."; } //---------------------------------------------------------------------------- |