1
#include "cmIncludeExternalMSProjectCommand.h"
3
// cmIncludeExternalMSProjectCommand
4
bool cmIncludeExternalMSProjectCommand::InitialPass(std::vector<std::string> const& args)
8
this->SetError("INCLUDE_EXTERNAL_MSPROJECT called with incorrect number of arguments");
13
if(m_Makefile->GetDefinition("WIN32")) {
15
std::string location = args[1];
16
m_Makefile->ExpandVariablesInString(location);
18
std::vector<std::string> name_and_location;
19
name_and_location.push_back(args[0]);
20
name_and_location.push_back(location);
22
std::vector<std::string> depends;
23
if (args.size() > 2) {
24
for (unsigned int i=2; i<args.size(); ++i) {
25
depends.push_back(args[i]);
29
std::string utility_name("INCLUDE_EXTERNAL_MSPROJECT");
31
utility_name += args[0];
33
m_Makefile->AddUtilityCommand(utility_name.c_str(), "echo", "\"Include external project\"",
34
false, name_and_location, depends);