[Cmake-commits] [cmake-commits] king committed cmFileCommand.cxx 1.107 1.108

cmake-commits at cmake.org cmake-commits at cmake.org
Fri May 16 17:50:26 EDT 2008


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

Modified Files:
	cmFileCommand.cxx 
Log Message:
ENH: Teach Fortran compiler identification about the Portland Group compiler (PGI).


Index: cmFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v
retrieving revision 1.107
retrieving revision 1.108
diff -C 2 -d -r1.107 -r1.108
*** cmFileCommand.cxx	30 Apr 2008 17:42:37 -0000	1.107
--- cmFileCommand.cxx	16 May 2008 21:50:24 -0000	1.108
***************
*** 534,543 ****
          (c = fin.get(), fin))
      {
!     if(c == '\0')
        {
!       // A terminating null character has been found.  Check if the
!       // current string matches the requirements.  Since it was
!       // terminated by a null character, we require that the length be
!       // at least one no matter what the user specified.
        if(s.length() >= minlen && s.length() >= 1 &&
           (!have_regex || regex.find(s.c_str())))
--- 534,547 ----
          (c = fin.get(), fin))
      {
!     if(c == '\0' || c == '\f')
        {
!       // A terminating character has been found.  In most cases it is
!       // a NULL character, but at least one compiler (Portland Group
!       // Fortran) produces binaries that terminate strings with a form
!       // feed.
! 
!       // Check if the current string matches the requirements.  Since
!       // it was terminated by a null character, we require that the
!       // length be at least one no matter what the user specified.
        if(s.length() >= minlen && s.length() >= 1 &&
           (!have_regex || regex.find(s.c_str())))



More information about the Cmake-commits mailing list