[Cmake-commits] [cmake-commits] king committed cmSourceFileLocation.cxx 1.5 1.6

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jul 30 11:06:09 EDT 2008


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

Modified Files:
	cmSourceFileLocation.cxx 
Log Message:
BUG: Avoid double-slash in check for source file


Index: cmSourceFileLocation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmSourceFileLocation.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -C 2 -d -r1.5 -r1.6
*** cmSourceFileLocation.cxx	25 Jul 2008 22:00:47 -0000	1.5
--- cmSourceFileLocation.cxx	30 Jul 2008 15:06:06 -0000	1.6
***************
*** 114,119 ****
        tryPath += "/";
        }
!     tryPath += this->Directory;
!     tryPath += "/";
      tryPath += this->Name;
      if(cmSystemTools::FileExists(tryPath.c_str(), true))
--- 114,122 ----
        tryPath += "/";
        }
!     if(!this->Directory.empty())
!       {
!       tryPath += this->Directory;
!       tryPath += "/";
!       }
      tryPath += this->Name;
      if(cmSystemTools::FileExists(tryPath.c_str(), true))



More information about the Cmake-commits mailing list