diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-06-01 15:30:59 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-06-01 15:30:59 (GMT) |
commit | b97ad900c09345343ed1e34067b9555f2e16b037 (patch) | |
tree | 6f8d94bab87c207aa8f21cdbe960c817d38ff879 /Source/cmLocalGenerator.cxx | |
parent | c56547a3f9660aca974ef80431cab8f8e5055185 (diff) | |
download | CMake-b97ad900c09345343ed1e34067b9555f2e16b037.zip CMake-b97ad900c09345343ed1e34067b9555f2e16b037.tar.gz CMake-b97ad900c09345343ed1e34067b9555f2e16b037.tar.bz2 |
ENH: Fix bug in cmake install when exec/librayr output path not defined. Closes Bug #899 - subdir INSTALL_TARGETS INSTALL_PROGRAMS dont work
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index e8435bf..61cb39d 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -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(); |