From b97ad900c09345343ed1e34067b9555f2e16b037 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 1 Jun 2004 11:30:59 -0400 Subject: ENH: Fix bug in cmake install when exec/librayr output path not defined. Closes Bug #899 - subdir INSTALL_TARGETS INSTALL_PROGRAMS dont work --- Source/cmLocalGenerator.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(); -- cgit v0.12