From f3ed62b75a4ed6c02f9146b935477228c9c09731 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 7 Jul 2005 16:01:35 -0400 Subject: ENH: configure file will assume start source dir if a full path is not provided --- Source/cmConfigureFileCommand.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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, -- cgit v0.12