mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
Merge topic 'remove-vs10-generator'
8d6f015d59 Drop Visual Studio 10 2010 generator
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7718
This commit is contained in:
@@ -1809,11 +1809,8 @@ void cmVisualStudio10TargetGenerator::WriteCustomRuleCpp(
|
||||
e2.WritePlatformConfigTag("Command", cond, script);
|
||||
e2.WritePlatformConfigTag("AdditionalInputs", cond, additional_inputs);
|
||||
e2.WritePlatformConfigTag("Outputs", cond, outputs);
|
||||
if (this->LocalGenerator->GetVersion() >
|
||||
cmGlobalVisualStudioGenerator::VSVersion::VS10) {
|
||||
// VS >= 11 let us turn off linking of custom command outputs.
|
||||
e2.WritePlatformConfigTag("LinkObjects", cond, "false");
|
||||
}
|
||||
// Turn off linking of custom command outputs.
|
||||
e2.WritePlatformConfigTag("LinkObjects", cond, "false");
|
||||
if (symbolic &&
|
||||
this->LocalGenerator->GetVersion() >=
|
||||
cmGlobalVisualStudioGenerator::VSVersion::VS16) {
|
||||
@@ -2378,28 +2375,6 @@ void cmVisualStudio10TargetGenerator::WriteSource(Elem& e2,
|
||||
// we must use relative paths.
|
||||
bool forceRelative = sf->GetLanguage() == "CUDA";
|
||||
std::string sourceFile = this->ConvertPath(sf->GetFullPath(), forceRelative);
|
||||
if (this->LocalGenerator->GetVersion() ==
|
||||
cmGlobalVisualStudioGenerator::VSVersion::VS10 &&
|
||||
cmSystemTools::FileIsFullPath(sourceFile)) {
|
||||
// Normal path conversion resulted in a full path. VS 10 (but not 11)
|
||||
// refuses to show the property page in the IDE for a source file with a
|
||||
// full path (not starting in a '.' or '/' AFAICT). CMake <= 2.8.4 used a
|
||||
// relative path but to allow deeper build trees CMake 2.8.[5678] used a
|
||||
// full path except for custom commands. Custom commands do not work
|
||||
// without a relative path, but they do not seem to be involved in tools
|
||||
// with the above behavior. For other sources we now use a relative path
|
||||
// when the combined path will not be too long so property pages appear.
|
||||
std::string sourceRel = this->ConvertPath(sf->GetFullPath(), true);
|
||||
size_t const maxLen = 250;
|
||||
if (sf->GetCustomCommand() ||
|
||||
((this->LocalGenerator->GetCurrentBinaryDirectory().length() + 1 +
|
||||
sourceRel.length()) <= maxLen)) {
|
||||
forceRelative = true;
|
||||
sourceFile = sourceRel;
|
||||
} else {
|
||||
this->GlobalGenerator->PathTooLong(this->GeneratorTarget, sf, sourceRel);
|
||||
}
|
||||
}
|
||||
ConvertToWindowsSlash(sourceFile);
|
||||
e2.Attribute("Include", sourceFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user