summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-06-12 16:22:07 (GMT)
committerBrad King <brad.king@kitware.com>2001-06-12 16:22:07 (GMT)
commit19b2f84ac7dd9a64661124971704d694e9dfbda2 (patch)
tree415f5dcb45e5f77990e7abddb942fdd33afca38d /Source/cmUnixMakefileGenerator.cxx
parent25afe09ac82b22c491f794eea9851a20f3e45402 (diff)
downloadCMake-19b2f84ac7dd9a64661124971704d694e9dfbda2.zip
CMake-19b2f84ac7dd9a64661124971704d694e9dfbda2.tar.gz
CMake-19b2f84ac7dd9a64661124971704d694e9dfbda2.tar.bz2
BUG: CMake's configure needs to run with the current directory as the project's binary directory.
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index d57bbb0..fdeada0 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -1102,10 +1102,12 @@ void cmUnixMakefileGenerator::ComputeSystemInfo()
{
// currently we run configure shell script here to determine the info
std::string output;
- std::string cmd;
+ std::string cmd = "cd ";
+ cmd += m_Makefile->GetHomeOutputDirectory();
+ cmd += "; ";
const char* root
= cmCacheManager::GetInstance()->GetCacheValue("CMAKE_ROOT");
- cmd = root;
+ cmd += root;
cmd += "/Templates/configure";
cmSystemTools::RunCommand(cmd.c_str(), output);
m_Makefile->AddDefinition("RUN_CONFIGURE", true);