diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-07-14 18:16:46 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-07-14 18:16:46 (GMT) |
commit | 3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78 (patch) | |
tree | 7f54a15847997cffa6979fb9267263a01029cd48 /Source/cmGlobalVisualStudio6Generator.cxx | |
parent | b23b1800a586b0afb316f92d9bde82896c804ef5 (diff) | |
download | CMake-3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78.zip CMake-3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78.tar.gz CMake-3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78.tar.bz2 |
ENH: remove INCLUDE_EXTERNAL_MSPROJECT name hack, and use target properties instead, fix VXExternalInclude test for VS10
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio6Generator.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx index 846b1b7..0013d4b 100644 --- a/Source/cmGlobalVisualStudio6Generator.cxx +++ b/Source/cmGlobalVisualStudio6Generator.cxx @@ -247,14 +247,14 @@ void cmGlobalVisualStudio6Generator } } // Write the project into the DSW file - if (strncmp(l->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) == 0) + cmTarget* target = &l->second; + const char* expath = target->GetProperty("EXTERNAL_MSPROJECT"); + if(expath) { - cmCustomCommand cc = l->second.GetPostBuildCommands()[0]; - const cmCustomCommandLines& cmds = cc.GetCommandLines(); - std::string project = cmds[0][0]; - std::string location = cmds[0][1]; + std::string project = target->GetName(); + std::string location = expath; this->WriteExternalProject(fout, project.c_str(), - location.c_str(), cc.GetDepends()); + location.c_str(), target->GetUtilities()); } else { @@ -451,7 +451,7 @@ void cmGlobalVisualStudio6Generator::WriteProject(std::ostream& fout, void cmGlobalVisualStudio6Generator::WriteExternalProject(std::ostream& fout, const char* name, const char* location, - const std::vector<std::string>& dependencies) + const std::set<cmStdString>& dependencies) { fout << "#########################################################" "######################\n\n"; @@ -462,7 +462,7 @@ void cmGlobalVisualStudio6Generator::WriteExternalProject(std::ostream& fout, fout << "{{{\n"; - std::vector<std::string>::const_iterator i, end; + std::set<cmStdString>::const_iterator i, end; // write dependencies. i = dependencies.begin(); end = dependencies.end(); |