[cmake-commits] king committed cmSourceFile.cxx 1.35.8.4 1.35.8.5

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jun 13 16:22:33 EDT 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv28980

Modified Files:
      Tag: CMake-SourceFile2-b
	cmSourceFile.cxx 
Log Message:
BUG: Do not abort when file cannot be found.


Index: cmSourceFile.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmSourceFile.cxx,v
retrieving revision 1.35.8.4
retrieving revision 1.35.8.5
diff -u -d -r1.35.8.4 -r1.35.8.5
--- cmSourceFile.cxx	13 Jun 2007 20:12:13 -0000	1.35.8.4
+++ cmSourceFile.cxx	13 Jun 2007 20:22:31 -0000	1.35.8.5
@@ -39,11 +39,6 @@
 //----------------------------------------------------------------------------
 std::string const& cmSourceFile::GetExtension() const
 {
-  // Make sure the file location is known.
-  if(this->FullPath.empty())
-    {
-    abort();
-    }
   return this->Extension;
 }
 
@@ -76,16 +71,12 @@
       this->CheckExtension();
       }
     }
-  return static_cast<cmSourceFile const*>(this)->GetFullPath();
+  return this->FullPath;
 }
 
 //----------------------------------------------------------------------------
 std::string const& cmSourceFile::GetFullPath() const
 {
-  if(this->FullPath.empty())
-    {
-    abort();
-    }
   return this->FullPath;
 }
 



More information about the Cmake-commits mailing list