|
|
@@ -329,6 +329,26 @@ void cmGlobalVisualStudio7Generator::Generate()
|
|
|
"Add CMAKE_WARN_VS9=OFF to the cache to disable this warning.");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (this->Version == VSVersion::VS12 &&
|
|
|
+ !this->CMakeInstance->GetIsInTryCompile()) {
|
|
|
+ std::string cmakeWarnVS12;
|
|
|
+ if (cmValue cached = this->CMakeInstance->GetState()->GetCacheEntryValue(
|
|
|
+ "CMAKE_WARN_VS12")) {
|
|
|
+ this->CMakeInstance->MarkCliAsUsed("CMAKE_WARN_VS12");
|
|
|
+ cmakeWarnVS12 = *cached;
|
|
|
+ } else {
|
|
|
+ cmSystemTools::GetEnv("CMAKE_WARN_VS12", cmakeWarnVS12);
|
|
|
+ }
|
|
|
+ if (cmakeWarnVS12.empty() || !cmIsOff(cmakeWarnVS12)) {
|
|
|
+ this->CMakeInstance->IssueMessage(
|
|
|
+ MessageType::WARNING,
|
|
|
+ "The \"Visual Studio 12 2013\" generator is deprecated "
|
|
|
+ "and will be removed in a future version of CMake."
|
|
|
+ "\n"
|
|
|
+ "Add CMAKE_WARN_VS12=OFF to the cache to disable this warning.");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void cmGlobalVisualStudio7Generator::OutputSLNFile(
|