summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-02-10 08:22:00 -0500
committerBrad King <brad.king@kitware.com>2005-02-10 08:22:00 -0500
commitcab47a47a293935a4ea2e109e6efdd5442d876a1 (patch)
treebe025c2c512df5b3a34eadbab9da75c5cde9c882
parentf9e61d1aa44d19afda2ea46b026463abada80b20 (diff)
downloadcmake-cab47a47a293935a4ea2e109e6efdd5442d876a1.tar.gz
BUG: Fix for bug 1100. If EXECUTABLE_OUTPUT_PATH or LIBRARY_OUTPUT_PATH is a relative path it should be converted to a full path relative to each build directory.
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 850f96442d..0236d74a8a 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -68,6 +68,9 @@ cmLocalUnixMakefileGenerator::ConfigureOutputPaths()
m_LibraryOutputPath = m_Makefile->GetDefinition("LIBRARY_OUTPUT_PATH");
if(m_LibraryOutputPath.size())
{
+ m_LibraryOutputPath =
+ cmSystemTools::CollapseFullPath(m_LibraryOutputPath.c_str(),
+ m_Makefile->GetStartOutputDirectory());
if(m_LibraryOutputPath[m_LibraryOutputPath.size() -1] != '/')
{
m_LibraryOutputPath += "/";
@@ -87,6 +90,9 @@ cmLocalUnixMakefileGenerator::ConfigureOutputPaths()
m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH");
if(m_ExecutableOutputPath.size())
{
+ m_ExecutableOutputPath =
+ cmSystemTools::CollapseFullPath(m_ExecutableOutputPath.c_str(),
+ m_Makefile->GetStartOutputDirectory());
if(m_ExecutableOutputPath[m_ExecutableOutputPath.size() -1] != '/')
{
m_ExecutableOutputPath += "/";