mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-01 12:18:36 -06:00
fix to executable depends for custom commands
This commit is contained in:
@@ -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())
|
||||
<< ";";
|
||||
|
||||
Reference in New Issue
Block a user