From b69cfaf4124079c9cf59fabdae6d2a024fc07086 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 25 Apr 2008 15:30:58 -0400 Subject: BUG: Trust user-provided source file full paths. --- Source/cmSourceFile.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx index 1cc2b2c..da2e79a 100644 --- a/Source/cmSourceFile.cxx +++ b/Source/cmSourceFile.cxx @@ -167,6 +167,16 @@ bool cmSourceFile::FindFullPath() } } + // If the user provided a full path, trust it. If the file is not + // there the native tool will complain at build time. + if(!this->Location.DirectoryIsAmbiguous()) + { + this->FullPath = this->Location.GetDirectory(); + this->FullPath += "/"; + this->FullPath += this->Location.GetName(); + return true; + } + cmOStringStream e; e << "Cannot find source file \"" << this->Location.GetName() << "\""; e << "\n\nTried extensions"; -- cgit v0.12