summaryrefslogtreecommitdiffstats
path: root/Source/cmConfigureFileCommand.cxx
diff options
context:
space:
mode:
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 bd3b4d3..fa7d52d 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,