BUG: CMake's configure needs to run with the current directory as the project's binary directory.
This commit is contained in:
parent
25afe09ac8
commit
19b2f84ac7
|
@ -1102,10 +1102,12 @@ void cmUnixMakefileGenerator::ComputeSystemInfo()
|
||||||
{
|
{
|
||||||
// currently we run configure shell script here to determine the info
|
// currently we run configure shell script here to determine the info
|
||||||
std::string output;
|
std::string output;
|
||||||
std::string cmd;
|
std::string cmd = "cd ";
|
||||||
|
cmd += m_Makefile->GetHomeOutputDirectory();
|
||||||
|
cmd += "; ";
|
||||||
const char* root
|
const char* root
|
||||||
= cmCacheManager::GetInstance()->GetCacheValue("CMAKE_ROOT");
|
= cmCacheManager::GetInstance()->GetCacheValue("CMAKE_ROOT");
|
||||||
cmd = root;
|
cmd += root;
|
||||||
cmd += "/Templates/configure";
|
cmd += "/Templates/configure";
|
||||||
cmSystemTools::RunCommand(cmd.c_str(), output);
|
cmSystemTools::RunCommand(cmd.c_str(), output);
|
||||||
m_Makefile->AddDefinition("RUN_CONFIGURE", true);
|
m_Makefile->AddDefinition("RUN_CONFIGURE", true);
|
||||||
|
|
Loading…
Reference in New Issue