now adds src and bin dir into cache
This commit is contained in:
parent
67e31b789f
commit
cdffbea017
@ -57,8 +57,16 @@ bool cmProjectCommand::Invoke(std::vector<std::string>& args)
|
|||||||
|
|
||||||
m_Makefile->AddDefinition(bindir.c_str(),
|
m_Makefile->AddDefinition(bindir.c_str(),
|
||||||
m_Makefile->GetCurrentOutputDirectory());
|
m_Makefile->GetCurrentOutputDirectory());
|
||||||
|
cmCacheManager::GetInstance()->
|
||||||
|
AddCacheEntry(bindir.c_str(),
|
||||||
|
m_Makefile->GetCurrentOutputDirectory(),
|
||||||
|
"Value Computed by CMake", cmCacheManager::PATH);
|
||||||
m_Makefile->AddDefinition(srcdir.c_str(),
|
m_Makefile->AddDefinition(srcdir.c_str(),
|
||||||
m_Makefile->GetCurrentDirectory());
|
m_Makefile->GetCurrentDirectory());
|
||||||
|
cmCacheManager::GetInstance()->
|
||||||
|
AddCacheEntry(srcdir.c_str(),
|
||||||
|
m_Makefile->GetCurrentDirectory(),
|
||||||
|
"Value Computed by CMake", cmCacheManager::PATH);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user