summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGhsMultiGenerator.cxx
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2016-08-30 18:55:37 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-17 14:06:18 (GMT)
commit3b6f1587bed536e3d31e6665aff35aa27f5e79bc (patch)
tree5d53fe3704701d69e84bb13205cde5fcf3bdab5b /Source/cmGlobalGhsMultiGenerator.cxx
parent5ebba228823ffc96e82f4b6cc1103c2f2ed8cfa7 (diff)
downloadCMake-3b6f1587bed536e3d31e6665aff35aa27f5e79bc.zip
CMake-3b6f1587bed536e3d31e6665aff35aa27f5e79bc.tar.gz
CMake-3b6f1587bed536e3d31e6665aff35aa27f5e79bc.tar.bz2
Factor IDE folder name retrieval out into helper method
Add a `cmGeneratorTarget::GetEffectiveFolderName` helper to abstract lookup of the `FOLDER` property in combination with checking for generator support of folders.
Diffstat (limited to 'Source/cmGlobalGhsMultiGenerator.cxx')
-rw-r--r--Source/cmGlobalGhsMultiGenerator.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmGlobalGhsMultiGenerator.cxx b/Source/cmGlobalGhsMultiGenerator.cxx
index 0eac338..d4ae677 100644
--- a/Source/cmGlobalGhsMultiGenerator.cxx
+++ b/Source/cmGlobalGhsMultiGenerator.cxx
@@ -439,11 +439,7 @@ void cmGlobalGhsMultiGenerator::UpdateBuildFiles(
tgtsI != tgts.end(); ++tgtsI) {
const cmGeneratorTarget* tgt = *tgtsI;
if (IsTgtForBuild(tgt)) {
- char const* rawFolderName = tgt->GetProperty("FOLDER");
- if (NULL == rawFolderName) {
- rawFolderName = "";
- }
- std::string folderName(rawFolderName);
+ std::string folderName = tgt->GetEffectiveFolderName();
if (this->TargetFolderBuildStreams.end() ==
this->TargetFolderBuildStreams.find(folderName)) {
this->AddFilesUpToPath(