summaryrefslogtreecommitdiff
path: root/Source/cmConfigureFileCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-28 16:00:57 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-28 16:00:57 -0500
commit4a1f15c344bd4f014ac1275e2c81473aab7dc32f (patch)
treeeadd88e1aa03748e893ef945318df487ad66f739 /Source/cmConfigureFileCommand.cxx
parentba0b6d307897351682cfa9c8017c07d8bd0f5818 (diff)
downloadcmake-4a1f15c344bd4f014ac1275e2c81473aab7dc32f.tar.gz
ENH: If configure file fails do not create directory
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r--Source/cmConfigureFileCommand.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx
index bd3b4d36c6..fa7d52d810 100644
--- a/Source/cmConfigureFileCommand.cxx
+++ b/Source/cmConfigureFileCommand.cxx
@@ -56,7 +56,11 @@ bool cmConfigureFileCommand::InitialPass(std::vector<std::string> const& args)
// first pass (now).
if(m_Immediate)
{
- this->ConfigureFile();
+ if ( !this->ConfigureFile() )
+ {
+ this->SetError("Problem configuring file");
+ return false;
+ }
}
return true;
@@ -70,9 +74,9 @@ void cmConfigureFileCommand::FinalPass()
}
}
-void cmConfigureFileCommand::ConfigureFile()
+int cmConfigureFileCommand::ConfigureFile()
{
- m_Makefile->ConfigureFile(m_InputFile.c_str(),
+ return m_Makefile->ConfigureFile(m_InputFile.c_str(),
m_OuputFile.c_str(),
m_CopyOnly,
m_AtOnly,