ENH: Fix bug in cmake install when exec/librayr output path not defined. Closes Bug #899 - subdir INSTALL_TARGETS INSTALL_PROGRAMS dont work

This commit is contained in:
Andy Cedilnik 2004-06-01 11:30:59 -04:00
parent c56547a3f9
commit b97ad900c0
1 changed files with 10 additions and 0 deletions

View File

@ -127,6 +127,16 @@ void cmLocalGenerator::GenerateInstallRules()
}
}
}
if ( libOutPath.size() == 0 )
{
// LIBRARY_OUTPUT_PATH not defined
libOutPath = currdir + "/";
}
if ( exeOutPath.size() == 0 )
{
// EXECUTABLE_OUTPUT_PATH not defined
exeOutPath = currdir + "/";
}
std::string destination;
for(cmTargets::const_iterator l = tgts.begin();