Handle embeded manifests with ifort.

This commit is contained in:
Bill Hoffman 2009-09-01 14:10:49 -04:00
parent 07f029d6ef
commit 5fa4784274
1 changed files with 7 additions and 1 deletions

View File

@ -4154,7 +4154,13 @@ int cmake::VisualStudioLinkIncremental(std::vector<std::string>& args,
{
return -1;
}
std::string manifestArg = "/MANIFESTFILE:";
std::string link = cmSystemTools::LowerCase(linkCommand[0]);
std::string manifestArg;
if(link.find("ifort") != link.npos)
{
manifestArg += "/MANIFEST ";
}
manifestArg += "/MANIFESTFILE:";
std::vector<cmStdString> rcCommand;
rcCommand.push_back(cmSystemTools::FindProgram("rc.exe"));
std::vector<cmStdString> mtCommand;