summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-06-12 12:22:07 -0400
committerBrad King <brad.king@kitware.com>2001-06-12 12:22:07 -0400
commit19b2f84ac7dd9a64661124971704d694e9dfbda2 (patch)
tree415f5dcb45e5f77990e7abddb942fdd33afca38d
parent25afe09ac82b22c491f794eea9851a20f3e45402 (diff)
downloadcmake-19b2f84ac7dd9a64661124971704d694e9dfbda2.tar.gz
BUG: CMake's configure needs to run with the current directory as the project's binary directory.
-rw-r--r--Source/cmUnixMakefileGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index d57bbb08d7..fdeada0abb 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);