diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-03-28 21:00:57 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-03-28 21:00:57 (GMT) |
commit | 4a1f15c344bd4f014ac1275e2c81473aab7dc32f (patch) | |
tree | eadd88e1aa03748e893ef945318df487ad66f739 /Source/cmConfigureFileCommand.cxx | |
parent | ba0b6d307897351682cfa9c8017c07d8bd0f5818 (diff) | |
download | CMake-4a1f15c344bd4f014ac1275e2c81473aab7dc32f.zip CMake-4a1f15c344bd4f014ac1275e2c81473aab7dc32f.tar.gz CMake-4a1f15c344bd4f014ac1275e2c81473aab7dc32f.tar.bz2 |
ENH: If configure file fails do not create directory
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r-- | Source/cmConfigureFileCommand.cxx | 10 |
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, |