From 19b2f84ac7dd9a64661124971704d694e9dfbda2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 12 Jun 2001 12:22:07 -0400 Subject: BUG: CMake's configure needs to run with the current directory as the project's binary directory. --- Source/cmUnixMakefileGenerator.cxx | 6 ++++-- 1 file 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); -- cgit v0.12