diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-07-07 20:01:35 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-07-07 20:01:35 (GMT) |
commit | f3ed62b75a4ed6c02f9146b935477228c9c09731 (patch) | |
tree | b19a5cb145c4209b594af66c61a94a1f3f85b211 /Source/cmConfigureFileCommand.cxx | |
parent | 13e99490fbecaa7985b7ffb7e9f82bc8a01cfee6 (diff) | |
download | CMake-f3ed62b75a4ed6c02f9146b935477228c9c09731.zip CMake-f3ed62b75a4ed6c02f9146b935477228c9c09731.tar.gz CMake-f3ed62b75a4ed6c02f9146b935477228c9c09731.tar.bz2 |
ENH: configure file will assume start source dir if a full path is not provided
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r-- | Source/cmConfigureFileCommand.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx index e4e1fcb..ec9527d 100644 --- a/Source/cmConfigureFileCommand.cxx +++ b/Source/cmConfigureFileCommand.cxx @@ -88,7 +88,14 @@ void cmConfigureFileCommand::FinalPass() int cmConfigureFileCommand::ConfigureFile() { - return m_Makefile->ConfigureFile(m_InputFile.c_str(), + std::string inFile = m_InputFile; + if (!cmSystemTools::FileIsFullPath(inFile.c_str())) + { + inFile = m_Makefile->GetStartDirectory(); + inFile += "/"; + inFile += m_InputFile; + } + return m_Makefile->ConfigureFile(inFile.c_str(), m_OuputFile.c_str(), m_CopyOnly, m_AtOnly, |