ENH: new vnl

This commit is contained in:
Bill Hoffman 2001-02-13 18:49:09 -05:00
parent dd36c5f296
commit 21b18581bd
2 changed files with 8 additions and 1 deletions

View File

@ -42,6 +42,13 @@ void cmConfigureFileNoAutoconf::FinalPass()
m_InputFile.c_str()); m_InputFile.c_str());
return; return;
} }
cmSystemTools::ConvertToUnixSlashes(m_OuputFile);
std::string::size_type pos = m_OuputFile.rfind('/');
if(pos != std::string::npos)
{
std::string path = m_OuputFile.substr(0, pos);
cmSystemTools::MakeDirectory(path.c_str());
}
std::ofstream fout(m_OuputFile.c_str()); std::ofstream fout(m_OuputFile.c_str());
if(!fout) if(!fout)
{ {

View File

@ -327,7 +327,7 @@ void cmMakefile::ParseDirectory(const char* dir)
void cmMakefile::ExpandVaribles() void cmMakefile::ExpandVaribles()
{ {
// make sure binary and source dir are defined // make sure binary and source dir are defined
this->AddDefinition("CMAKE_BINARY_DIR", this->GetOutputDirectory()); this->AddDefinition("CMAKE_BINARY_DIR", this->GetOutputHomeDirectory());
this->AddDefinition("CMAKE_SOURCE_DIR", this->GetHomeDirectory()); this->AddDefinition("CMAKE_SOURCE_DIR", this->GetHomeDirectory());
// Now expand varibles in the include and link strings // Now expand varibles in the include and link strings