diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2016-08-30 18:55:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-17 14:06:18 (GMT) |
commit | 3b6f1587bed536e3d31e6665aff35aa27f5e79bc (patch) | |
tree | 5d53fe3704701d69e84bb13205cde5fcf3bdab5b /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | 5ebba228823ffc96e82f4b6cc1103c2f2ed8cfa7 (diff) | |
download | CMake-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/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index 3637fed..0287def 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -409,8 +409,8 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution( // Create "solution folder" information from FOLDER target property // if (written && this->UseFolderProperty()) { - const char* targetFolder = target->GetProperty("FOLDER"); - if (targetFolder) { + const std::string targetFolder = target->GetEffectiveFolderName(); + if (!targetFolder.empty()) { std::vector<cmsys::String> tokens = cmSystemTools::SplitString(targetFolder, '/', false); |