fix problem with custom command
This commit is contained in:
parent
1616135d4e
commit
df3205e873
@ -979,6 +979,7 @@ WriteCustomRule(std::ostream& fout,
|
|||||||
{
|
{
|
||||||
dep = cmSystemTools::GetFilenameWithoutLastExtension(dep);
|
dep = cmSystemTools::GetFilenameWithoutLastExtension(dep);
|
||||||
}
|
}
|
||||||
|
// check to see if the dependency is another target built by cmake
|
||||||
std::string libPath = dep + "_CMAKE_PATH";
|
std::string libPath = dep + "_CMAKE_PATH";
|
||||||
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());
|
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());
|
||||||
if (cacheValue && *cacheValue)
|
if (cacheValue && *cacheValue)
|
||||||
@ -997,7 +998,7 @@ WriteCustomRule(std::ostream& fout,
|
|||||||
libPath = cacheValue;
|
libPath = cacheValue;
|
||||||
}
|
}
|
||||||
libPath += "/";
|
libPath += "/";
|
||||||
libPath += "$(INTDIR)";
|
libPath += "$(INTDIR)/";
|
||||||
libPath += dep;
|
libPath += dep;
|
||||||
libPath += ".exe";
|
libPath += ".exe";
|
||||||
fout << this->ConvertToXMLOutputPath(libPath.c_str())
|
fout << this->ConvertToXMLOutputPath(libPath.c_str())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user