[Cmake-commits] [cmake-commits] king committed cmPolicies.cxx 1.9 1.10

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Mar 5 18:42:49 EST 2008


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

Modified Files:
	cmPolicies.cxx 
Log Message:
ENH: Fix policy warning message to not give wrong code as example.


Index: cmPolicies.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmPolicies.cxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -C 2 -d -r1.9 -r1.10
*** cmPolicies.cxx	5 Mar 2008 23:20:20 -0000	1.9
--- cmPolicies.cxx	5 Mar 2008 23:42:46 -0000	1.10
***************
*** 363,379 ****
    }
  
!   cmOStringStream error;
!   error << 
!     "Warning " <<
!     pos->second->IDString << ": " <<
!     pos->second->ShortDescription <<
!     " You can suppress this warning by adding either\n" <<
!     "cmake_policy (OLD " <<
!     pos->second->IDString << ") for the old behavior or " <<
!     "cmake_policy(NEW " <<
!     pos->second->IDString << ") for the new behavior. " <<
!     "Run cmake --help-policy " <<
!     pos->second->IDString << " for more information.";
!   return error.str();
  }
    
--- 363,374 ----
    }
  
!   cmOStringStream msg;
!   msg <<
!     "WARNING: Policy " << pos->second->IDString << " is not set: "
!     "" << pos->second->ShortDescription << "\n"
!     "Run \"cmake --help-policy " << pos->second->IDString << "\" for "
!     "policy details.  Use the cmake_policy command to set the policy "
!     "and suppress this warning.";
!   return msg.str();
  }
    



More information about the Cmake-commits mailing list