diff options
-rw-r--r-- | Source/cmSourceFile.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
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"; |