BUG: make sure exe output path is used for dep hack stuff
This commit is contained in:
parent
5824302612
commit
dd4e8df29a
|
@ -467,9 +467,21 @@ void cmLocalVisualStudio6Generator::WriteCustomRule(std::ostream& fout,
|
||||||
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());
|
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());
|
||||||
if (cacheValue)
|
if (cacheValue)
|
||||||
{
|
{
|
||||||
libPath = cacheValue;
|
std::string exePath = "";
|
||||||
|
if (m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH"))
|
||||||
|
{
|
||||||
|
exePath = m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH");
|
||||||
|
}
|
||||||
|
if(exePath.size())
|
||||||
|
{
|
||||||
|
libPath = exePath;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
libPath = cacheValue;
|
||||||
|
}
|
||||||
libPath += "/";
|
libPath += "/";
|
||||||
libPath += "$(INTDIR)";
|
libPath += "$(INTDIR)/";
|
||||||
libPath += dep;
|
libPath += dep;
|
||||||
libPath += ".exe";
|
libPath += ".exe";
|
||||||
fout << "\\\n\t" <<
|
fout << "\\\n\t" <<
|
||||||
|
|
|
@ -870,8 +870,20 @@ WriteCustomRule(std::ostream& fout,
|
||||||
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)
|
if (cacheValue)
|
||||||
{
|
{
|
||||||
libPath = cacheValue;
|
std::string exePath = "";
|
||||||
|
if (m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH"))
|
||||||
|
{
|
||||||
|
exePath = m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH");
|
||||||
|
}
|
||||||
|
if(exePath.size())
|
||||||
|
{
|
||||||
|
libPath = exePath;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
libPath = cacheValue;
|
||||||
|
}
|
||||||
libPath += "/";
|
libPath += "/";
|
||||||
libPath += "$(INTDIR)";
|
libPath += "$(INTDIR)";
|
||||||
libPath += dep;
|
libPath += dep;
|
||||||
|
|
Loading…
Reference in New Issue