[Cmake-commits] [cmake-commits] king committed cmComputeLinkInformation.cxx 1.29 1.30
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Mar 19 14:32:40 EDT 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv4034/Source
Modified Files:
cmComputeLinkInformation.cxx
Log Message:
ENH: Clarify warning for policy CMP0003 further.
Index: cmComputeLinkInformation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmComputeLinkInformation.cxx,v
retrieving revision 1.29
retrieving revision 1.30
diff -C 2 -d -r1.29 -r1.30
*** cmComputeLinkInformation.cxx 19 Mar 2008 13:14:10 -0000 1.29
--- cmComputeLinkInformation.cxx 19 Mar 2008 18:32:38 -0000 1.30
***************
*** 1387,1397 ****
//----------------------------------------------------------------------------
! void cmComputeLinkInformation::PrintLinkPolicyDiagnosis(std::ostream& os,
std::string& libs)
{
! os << "The best way to remove this warning is to set policy CMP0003 "
! << "to NEW. Then, try to build the project, if you get linker errors, "
! << "either use the full paths to the libraries that can not be "
! << "found, or use link_directories to add the missing directories.\n";
// Name the target.
os << "Target \"" << this->Target->GetName() << "\" ";
--- 1387,1400 ----
//----------------------------------------------------------------------------
! void cmComputeLinkInformation::PrintLinkPolicyDiagnosis(std::ostream& os,
std::string& libs)
{
! // Give the user some help.
! os << "The easiest way to avoid this warning is to set policy CMP0003 "
! << "to NEW and try to build the project. "
! << "If any libraries in the second list below cannot be found then "
! << "either convert them to be specified with a full path or use the "
! << "link_directories command to add the missing linker search path.\n";
!
// Name the target.
os << "Target \"" << this->Target->GetName() << "\" ";
***************
*** 1446,1452 ****
// Tell the user what is wrong.
! os << "This maybe OK as well. However, the linker will search "
! << "for libraries in the second list. "
! << "Finding them may depend on linker search paths earlier CMake "
<< "versions added as an implementation detail for linking to the "
<< "libraries in the first list. "
--- 1449,1455 ----
// Tell the user what is wrong.
! os << "This may be okay too because the linker will search for the "
! << "libraries in the second list. However, "
! << "finding them may depend on linker search paths earlier CMake "
<< "versions added as an implementation detail for linking to the "
<< "libraries in the first list. "
More information about the Cmake-commits
mailing list