[Cmake-commits] [cmake-commits] king committed cmSourceFile.cxx 1.49 1.50

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Apr 29 14:17:37 EDT 2008


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

Modified Files:
	cmSourceFile.cxx 
Log Message:
ENH: Add context information when a source file cannot be found.


Index: cmSourceFile.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmSourceFile.cxx,v
retrieving revision 1.49
retrieving revision 1.50
diff -C 2 -d -r1.49 -r1.50
*** cmSourceFile.cxx	25 Apr 2008 19:30:58 -0000	1.49
--- cmSourceFile.cxx	29 Apr 2008 18:17:35 -0000	1.50
***************
*** 180,184 ****
    cmOStringStream e;
    e << "Cannot find source file \"" << this->Location.GetName() << "\"";
!   e << "\n\nTried extensions";
    for(std::vector<std::string>::const_iterator ext = srcExts.begin();
        ext != srcExts.end(); ++ext)
--- 180,184 ----
    cmOStringStream e;
    e << "Cannot find source file \"" << this->Location.GetName() << "\"";
!   e << ".  Tried extensions";
    for(std::vector<std::string>::const_iterator ext = srcExts.begin();
        ext != srcExts.end(); ++ext)
***************
*** 191,195 ****
      e << " ." << *ext;
      }
!   cmSystemTools::Error(e.str().c_str());
    this->FindFullPathFailed = true;
    return false;
--- 191,195 ----
      e << " ." << *ext;
      }
!   this->Location.GetMakefile()->IssueMessage(cmake::FATAL_ERROR, e.str());
    this->FindFullPathFailed = true;
    return false;



More information about the Cmake-commits mailing list