ENH: Clarify warning for policy CMP0003 further.
This commit is contained in:
parent
530c206cba
commit
db228dd6d2
@ -1389,10 +1389,13 @@ bool cmComputeLinkInformation::FinishLinkerSearchDirectories()
|
|||||||
void cmComputeLinkInformation::PrintLinkPolicyDiagnosis(std::ostream& os,
|
void cmComputeLinkInformation::PrintLinkPolicyDiagnosis(std::ostream& os,
|
||||||
std::string& libs)
|
std::string& libs)
|
||||||
{
|
{
|
||||||
os << "The best way to remove this warning is to set policy CMP0003 "
|
// Give the user some help.
|
||||||
<< "to NEW. Then, try to build the project, if you get linker errors, "
|
os << "The easiest way to avoid this warning is to set policy CMP0003 "
|
||||||
<< "either use the full paths to the libraries that can not be "
|
<< "to NEW and try to build the project. "
|
||||||
<< "found, or use link_directories to add the missing directories.\n";
|
<< "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.
|
// Name the target.
|
||||||
os << "Target \"" << this->Target->GetName() << "\" ";
|
os << "Target \"" << this->Target->GetName() << "\" ";
|
||||||
|
|
||||||
@ -1445,9 +1448,9 @@ void cmComputeLinkInformation::PrintLinkPolicyDiagnosis(std::ostream& os,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Tell the user what is wrong.
|
// Tell the user what is wrong.
|
||||||
os << "This maybe OK as well. However, the linker will search "
|
os << "This may be okay too because the linker will search for the "
|
||||||
<< "for libraries in the second list. "
|
<< "libraries in the second list. However, "
|
||||||
<< "Finding them may depend on linker search paths earlier CMake "
|
<< "finding them may depend on linker search paths earlier CMake "
|
||||||
<< "versions added as an implementation detail for linking to the "
|
<< "versions added as an implementation detail for linking to the "
|
||||||
<< "libraries in the first list. "
|
<< "libraries in the first list. "
|
||||||
<< "For compatibility CMake is including the extra linker search "
|
<< "For compatibility CMake is including the extra linker search "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user