BUG: fix bug with custom commands depending on executables
This commit is contained in:
parent
2ff4690192
commit
58d9cfa141
@ -458,9 +458,19 @@ void cmLocalVisualStudio6Generator::WriteCustomRule(std::ostream& fout,
|
|||||||
for(std::vector<std::string>::const_iterator d = depends.begin();
|
for(std::vector<std::string>::const_iterator d = depends.begin();
|
||||||
d != depends.end(); ++d)
|
d != depends.end(); ++d)
|
||||||
{
|
{
|
||||||
|
std::string dep = cmSystemTools::GetFilenameName(*d);
|
||||||
|
if (cmSystemTools::GetFilenameLastExtension(dep) == ".exe")
|
||||||
|
{
|
||||||
|
dep = cmSystemTools::GetFilenameWithoutLastExtension(dep);
|
||||||
|
}
|
||||||
|
std::string libPath = dep + "_CMAKE_PATH";
|
||||||
|
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());
|
||||||
|
if (!cacheValue)
|
||||||
|
{
|
||||||
fout << "\\\n\t" <<
|
fout << "\\\n\t" <<
|
||||||
cmSystemTools::ConvertToOutputPath(d->c_str());
|
cmSystemTools::ConvertToOutputPath(d->c_str());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fout << "\n";
|
fout << "\n";
|
||||||
|
|
||||||
fout << "# PROP Ignore_Default_Tool 1\n";
|
fout << "# PROP Ignore_Default_Tool 1\n";
|
||||||
|
@ -862,9 +862,19 @@ WriteCustomRule(std::ostream& fout,
|
|||||||
for(std::vector<std::string>::const_iterator d = depends.begin();
|
for(std::vector<std::string>::const_iterator d = depends.begin();
|
||||||
d != depends.end(); ++d)
|
d != depends.end(); ++d)
|
||||||
{
|
{
|
||||||
|
std::string dep = cmSystemTools::GetFilenameName(*d);
|
||||||
|
if (cmSystemTools::GetFilenameLastExtension(dep) == ".exe")
|
||||||
|
{
|
||||||
|
dep = cmSystemTools::GetFilenameWithoutLastExtension(dep);
|
||||||
|
}
|
||||||
|
std::string libPath = dep + "_CMAKE_PATH";
|
||||||
|
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());
|
||||||
|
if (!cacheValue)
|
||||||
|
{
|
||||||
fout << this->ConvertToXMLOutputPath(d->c_str())
|
fout << this->ConvertToXMLOutputPath(d->c_str())
|
||||||
<< ";";
|
<< ";";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fout << "\"\n";
|
fout << "\"\n";
|
||||||
fout << "\t\t\t\t\tOutputs=\"";
|
fout << "\t\t\t\t\tOutputs=\"";
|
||||||
if(output == 0)
|
if(output == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user