summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-10 12:49:52 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-11-10 12:50:00 (GMT)
commit78def0e25749249b500e8093e34df46217c526ef (patch)
tree3c10ffc8ab11ad2edf69976ace485ed6b54a3929 /Source
parent9aaf287d634db618c2961a063a3dda36d13d645b (diff)
parent15892aa3c0bd111dde2c15c9c10875d01c8acc2b (diff)
downloadCMake-78def0e25749249b500e8093e34df46217c526ef.zip
CMake-78def0e25749249b500e8093e34df46217c526ef.tar.gz
CMake-78def0e25749249b500e8093e34df46217c526ef.tar.bz2
Merge topic 'csharp-settings-property'
15892aa3 VS: Fix warnings in generated references to '.settings' files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1450
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 1aadf67..6486c8b 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1689,12 +1689,8 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf)
} else if (ext == "natvis") {
tool = "Natvis";
} else if (ext == "settings") {
- // remove path to current source dir (if files are in current source dir)
- if (!sourceLink.empty()) {
- settingsLastGenOutput = sourceLink;
- } else {
- settingsLastGenOutput = sf->GetFullPath();
- }
+ settingsLastGenOutput =
+ cmsys::SystemTools::GetFilenameName(sf->GetFullPath());
std::size_t pos = settingsLastGenOutput.find(".settings");
settingsLastGenOutput.replace(pos, 9, ".Designer.cs");
settingsGenerator = "SettingsSingleFileGenerator";