summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-19 18:32:38 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-19 18:32:38 (GMT)
commitdb228dd6d26b5acb6bac541edeb1e2d1c5b500fd (patch)
treeb9d005c9c346615aabcefce42741be896da9cd8f /Source/cmComputeLinkInformation.cxx
parent530c206cba6450e47b3cba8b7b6c2df6d405faaa (diff)
downloadCMake-db228dd6d26b5acb6bac541edeb1e2d1c5b500fd.zip
CMake-db228dd6d26b5acb6bac541edeb1e2d1c5b500fd.tar.gz
CMake-db228dd6d26b5acb6bac541edeb1e2d1c5b500fd.tar.bz2
ENH: Clarify warning for policy CMP0003 further.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 7f310b9..f16064a 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -1386,13 +1386,16 @@ bool cmComputeLinkInformation::FinishLinkerSearchDirectories()
}
//----------------------------------------------------------------------------
-void cmComputeLinkInformation::PrintLinkPolicyDiagnosis(std::ostream& os,
+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";
+ // 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() << "\" ";
@@ -1445,9 +1448,9 @@ void cmComputeLinkInformation::PrintLinkPolicyDiagnosis(std::ostream& os,
}
// 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 "
+ 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. "
<< "For compatibility CMake is including the extra linker search "