mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
fix to executable depends for custom commands
This commit is contained in:
parent
62fec9b386
commit
2b2a9d73da
@ -465,10 +465,20 @@ void cmLocalVisualStudio6Generator::WriteCustomRule(std::ostream& fout,
|
||||
}
|
||||
std::string libPath = dep + "_CMAKE_PATH";
|
||||
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());
|
||||
if (!cacheValue)
|
||||
if (cacheValue)
|
||||
{
|
||||
fout << "\\\n\t" <<
|
||||
cmSystemTools::ConvertToOutputPath(d->c_str());
|
||||
libPath = cacheValue;
|
||||
libPath += "/";
|
||||
libPath += "$(INTDIR)";
|
||||
libPath += dep;
|
||||
libPath += ".exe";
|
||||
fout << cmSystemTools::ConvertToOutputPath(libPath.c_str())
|
||||
<< ";";
|
||||
}
|
||||
else
|
||||
{
|
||||
fout << cmSystemTools::ConvertToOutputPath(d->c_str())
|
||||
<< ";";
|
||||
}
|
||||
}
|
||||
fout << "\n";
|
||||
|
@ -869,7 +869,17 @@ WriteCustomRule(std::ostream& fout,
|
||||
}
|
||||
std::string libPath = dep + "_CMAKE_PATH";
|
||||
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());
|
||||
if (!cacheValue)
|
||||
if (cacheValue)
|
||||
{
|
||||
libPath = cacheValue;
|
||||
libPath += "/";
|
||||
libPath += "$(INTDIR)";
|
||||
libPath += dep;
|
||||
libPath += ".exe";
|
||||
fout << this->ConvertToXMLOutputPath(libPath.c_str())
|
||||
<< ";";
|
||||
}
|
||||
else
|
||||
{
|
||||
fout << this->ConvertToXMLOutputPath(d->c_str())
|
||||
<< ";";
|
||||
|
Loading…
Reference in New Issue
Block a user