diff options
Diffstat (limited to 'Source/cmAddExecutableCommand.cxx')
-rw-r--r-- | Source/cmAddExecutableCommand.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx index 2988c6d..b8955e3 100644 --- a/Source/cmAddExecutableCommand.cxx +++ b/Source/cmAddExecutableCommand.cxx @@ -49,11 +49,21 @@ bool cmAddExecutableCommand::Invoke(std::vector<std::string>& args) this->SetError("called with incorrect number of arguments"); return false; } - + std::vector<std::string>::iterator s = args.begin(); - std::vector<std::string> srclists(++s, args.end()); + ++s; + if (*s == "WIN32") + { + ++s; + std::vector<std::string> srclists(s, args.end()); + m_Makefile->AddExecutable(args[0].c_str(),srclists, true); + } + else + { + std::vector<std::string> srclists(s, args.end()); + m_Makefile->AddExecutable(args[0].c_str(),srclists, false); + } - m_Makefile->AddExecutable(args[0].c_str(),srclists); return true; } |