Merge branch 'fix_policy_diagnostics' into release
This commit is contained in:
commit
f180fc8925
|
@ -165,10 +165,13 @@ bool cmAddCustomTargetCommand
|
||||||
if (!nameOk)
|
if (!nameOk)
|
||||||
{
|
{
|
||||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||||
|
cmOStringStream e;
|
||||||
bool issueMessage = false;
|
bool issueMessage = false;
|
||||||
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0037))
|
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0037))
|
||||||
{
|
{
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
|
e << (this->Makefile->GetPolicies()
|
||||||
|
->GetPolicyWarning(cmPolicies::CMP0037)) << "\n";
|
||||||
issueMessage = true;
|
issueMessage = true;
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
break;
|
break;
|
||||||
|
@ -180,9 +183,6 @@ bool cmAddCustomTargetCommand
|
||||||
}
|
}
|
||||||
if (issueMessage)
|
if (issueMessage)
|
||||||
{
|
{
|
||||||
cmOStringStream e;
|
|
||||||
e << (this->Makefile->GetPolicies()
|
|
||||||
->GetPolicyWarning(cmPolicies::CMP0037)) << "\n";
|
|
||||||
e << "The target name \"" << targetName <<
|
e << "The target name \"" << targetName <<
|
||||||
"\" is reserved or not valid for certain "
|
"\" is reserved or not valid for certain "
|
||||||
"CMake features, such as generator expressions, and may result "
|
"CMake features, such as generator expressions, and may result "
|
||||||
|
|
|
@ -79,10 +79,13 @@ bool cmAddExecutableCommand
|
||||||
if (!nameOk)
|
if (!nameOk)
|
||||||
{
|
{
|
||||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||||
|
cmOStringStream e;
|
||||||
bool issueMessage = false;
|
bool issueMessage = false;
|
||||||
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0037))
|
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0037))
|
||||||
{
|
{
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
|
e << (this->Makefile->GetPolicies()
|
||||||
|
->GetPolicyWarning(cmPolicies::CMP0037)) << "\n";
|
||||||
issueMessage = true;
|
issueMessage = true;
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
break;
|
break;
|
||||||
|
@ -94,9 +97,6 @@ bool cmAddExecutableCommand
|
||||||
}
|
}
|
||||||
if (issueMessage)
|
if (issueMessage)
|
||||||
{
|
{
|
||||||
cmOStringStream e;
|
|
||||||
e << (this->Makefile->GetPolicies()
|
|
||||||
->GetPolicyWarning(cmPolicies::CMP0037)) << "\n";
|
|
||||||
e << "The target name \"" << exename <<
|
e << "The target name \"" << exename <<
|
||||||
"\" is reserved or not valid for certain "
|
"\" is reserved or not valid for certain "
|
||||||
"CMake features, such as generator expressions, and may result "
|
"CMake features, such as generator expressions, and may result "
|
||||||
|
|
|
@ -214,11 +214,17 @@ bool cmAddLibraryCommand
|
||||||
if (!nameOk)
|
if (!nameOk)
|
||||||
{
|
{
|
||||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||||
|
cmOStringStream e;
|
||||||
bool issueMessage = false;
|
bool issueMessage = false;
|
||||||
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0037))
|
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0037))
|
||||||
{
|
{
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
issueMessage = type != cmTarget::INTERFACE_LIBRARY;
|
if(type != cmTarget::INTERFACE_LIBRARY)
|
||||||
|
{
|
||||||
|
e << (this->Makefile->GetPolicies()
|
||||||
|
->GetPolicyWarning(cmPolicies::CMP0037)) << "\n";
|
||||||
|
issueMessage = true;
|
||||||
|
}
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
break;
|
break;
|
||||||
case cmPolicies::NEW:
|
case cmPolicies::NEW:
|
||||||
|
@ -229,9 +235,6 @@ bool cmAddLibraryCommand
|
||||||
}
|
}
|
||||||
if (issueMessage)
|
if (issueMessage)
|
||||||
{
|
{
|
||||||
cmOStringStream e;
|
|
||||||
e << (this->Makefile->GetPolicies()
|
|
||||||
->GetPolicyWarning(cmPolicies::CMP0037)) << "\n";
|
|
||||||
e << "The target name \"" << libName <<
|
e << "The target name \"" << libName <<
|
||||||
"\" is reserved or not valid for certain "
|
"\" is reserved or not valid for certain "
|
||||||
"CMake features, such as generator expressions, and may result "
|
"CMake features, such as generator expressions, and may result "
|
||||||
|
|
|
@ -349,9 +349,12 @@ void cmComputeTargetDepends::AddTargetDepend(int depender_index,
|
||||||
cmMakefile *makefile = depender->GetMakefile();
|
cmMakefile *makefile = depender->GetMakefile();
|
||||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||||
bool issueMessage = false;
|
bool issueMessage = false;
|
||||||
|
cmOStringStream e;
|
||||||
switch(depender->GetPolicyStatusCMP0046())
|
switch(depender->GetPolicyStatusCMP0046())
|
||||||
{
|
{
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
|
e << (makefile->GetPolicies()
|
||||||
|
->GetPolicyWarning(cmPolicies::CMP0046)) << "\n";
|
||||||
issueMessage = true;
|
issueMessage = true;
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
break;
|
break;
|
||||||
|
@ -364,9 +367,7 @@ void cmComputeTargetDepends::AddTargetDepend(int depender_index,
|
||||||
if(issueMessage)
|
if(issueMessage)
|
||||||
{
|
{
|
||||||
cmake* cm = this->GlobalGenerator->GetCMakeInstance();
|
cmake* cm = this->GlobalGenerator->GetCMakeInstance();
|
||||||
cmOStringStream e;
|
|
||||||
e << (makefile->GetPolicies()
|
|
||||||
->GetPolicyWarning(cmPolicies::CMP0046)) << "\n";
|
|
||||||
e << "The dependency target \"" << dependee_name
|
e << "The dependency target \"" << dependee_name
|
||||||
<< "\" of target \"" << depender->GetName() << "\" does not exist.";
|
<< "\" of target \"" << depender->GetName() << "\" does not exist.";
|
||||||
|
|
||||||
|
|
|
@ -98,11 +98,14 @@ bool cmIncludeCommand
|
||||||
if (gg->IsExportedTargetsFile(fname_abs))
|
if (gg->IsExportedTargetsFile(fname_abs))
|
||||||
{
|
{
|
||||||
const char *modal = 0;
|
const char *modal = 0;
|
||||||
|
cmOStringStream e;
|
||||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||||
|
|
||||||
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0024))
|
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0024))
|
||||||
{
|
{
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
|
e << (this->Makefile->GetPolicies()
|
||||||
|
->GetPolicyWarning(cmPolicies::CMP0024)) << "\n";
|
||||||
modal = "should";
|
modal = "should";
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
break;
|
break;
|
||||||
|
@ -114,9 +117,6 @@ bool cmIncludeCommand
|
||||||
}
|
}
|
||||||
if (modal)
|
if (modal)
|
||||||
{
|
{
|
||||||
cmOStringStream e;
|
|
||||||
e << (this->Makefile->GetPolicies()
|
|
||||||
->GetPolicyWarning(cmPolicies::CMP0024)) << "\n";
|
|
||||||
e << "The file\n " << fname_abs << "\nwas generated by the export() "
|
e << "The file\n " << fname_abs << "\nwas generated by the export() "
|
||||||
"command. It " << modal << " not be used as the argument to the "
|
"command. It " << modal << " not be used as the argument to the "
|
||||||
"include() command. Use ALIAS targets instead to refer to targets "
|
"include() command. Use ALIAS targets instead to refer to targets "
|
||||||
|
|
|
@ -893,9 +893,12 @@ cmMakefile::AddCustomCommandToTarget(const char* target,
|
||||||
{
|
{
|
||||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||||
bool issueMessage = false;
|
bool issueMessage = false;
|
||||||
|
cmOStringStream e;
|
||||||
switch(this->GetPolicyStatus(cmPolicies::CMP0040))
|
switch(this->GetPolicyStatus(cmPolicies::CMP0040))
|
||||||
{
|
{
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
|
e << (this->GetPolicies()
|
||||||
|
->GetPolicyWarning(cmPolicies::CMP0040)) << "\n";
|
||||||
issueMessage = true;
|
issueMessage = true;
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
break;
|
break;
|
||||||
|
@ -908,9 +911,6 @@ cmMakefile::AddCustomCommandToTarget(const char* target,
|
||||||
|
|
||||||
if(issueMessage)
|
if(issueMessage)
|
||||||
{
|
{
|
||||||
cmOStringStream e;
|
|
||||||
e << (this->GetPolicies()
|
|
||||||
->GetPolicyWarning(cmPolicies::CMP0040)) << "\n";
|
|
||||||
e << "The target name \"" << target << "\" is unknown in this context.";
|
e << "The target name \"" << target << "\" is unknown in this context.";
|
||||||
IssueMessage(messageType, e.str().c_str());
|
IssueMessage(messageType, e.str().c_str());
|
||||||
}
|
}
|
||||||
|
|
|
@ -2636,11 +2636,14 @@ bool cmTarget::HandleLocationPropertyPolicy() const
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
cmOStringStream e;
|
||||||
const char *modal = 0;
|
const char *modal = 0;
|
||||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||||
switch (this->Makefile->GetPolicyStatus(cmPolicies::CMP0026))
|
switch (this->Makefile->GetPolicyStatus(cmPolicies::CMP0026))
|
||||||
{
|
{
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
|
e << (this->Makefile->GetPolicies()
|
||||||
|
->GetPolicyWarning(cmPolicies::CMP0026)) << "\n";
|
||||||
modal = "should";
|
modal = "should";
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
break;
|
break;
|
||||||
|
@ -2653,9 +2656,6 @@ bool cmTarget::HandleLocationPropertyPolicy() const
|
||||||
|
|
||||||
if (modal)
|
if (modal)
|
||||||
{
|
{
|
||||||
cmOStringStream e;
|
|
||||||
e << (this->Makefile->GetPolicies()
|
|
||||||
->GetPolicyWarning(cmPolicies::CMP0026)) << "\n";
|
|
||||||
e << "The LOCATION property " << modal << " not be read from target \""
|
e << "The LOCATION property " << modal << " not be read from target \""
|
||||||
<< this->GetName() << "\". Use the target name directly with "
|
<< this->GetName() << "\". Use the target name directly with "
|
||||||
"add_custom_command, or use the generator expression $<TARGET_FILE>, "
|
"add_custom_command, or use the generator expression $<TARGET_FILE>, "
|
||||||
|
|
|
@ -103,11 +103,14 @@ bool cmTargetLinkLibrariesCommand
|
||||||
|
|
||||||
if (this->Target->GetType() == cmTarget::UTILITY)
|
if (this->Target->GetType() == cmTarget::UTILITY)
|
||||||
{
|
{
|
||||||
|
cmOStringStream e;
|
||||||
const char *modal = 0;
|
const char *modal = 0;
|
||||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||||
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0039))
|
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0039))
|
||||||
{
|
{
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
|
e << this->Makefile->GetPolicies()
|
||||||
|
->GetPolicyWarning(cmPolicies::CMP0039) << "\n";
|
||||||
modal = "should";
|
modal = "should";
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
break;
|
break;
|
||||||
|
@ -119,9 +122,7 @@ bool cmTargetLinkLibrariesCommand
|
||||||
}
|
}
|
||||||
if (modal)
|
if (modal)
|
||||||
{
|
{
|
||||||
cmOStringStream e;
|
e <<
|
||||||
e << this->Makefile->GetPolicies()
|
|
||||||
->GetPolicyWarning(cmPolicies::CMP0039) << "\n"
|
|
||||||
"Utility target \"" << this->Target->GetName() << "\" " << modal
|
"Utility target \"" << this->Target->GetName() << "\" " << modal
|
||||||
<< " not be used as the target of a target_link_libraries call.";
|
<< " not be used as the target of a target_link_libraries call.";
|
||||||
this->Makefile->IssueMessage(messageType, e.str().c_str());
|
this->Makefile->IssueMessage(messageType, e.str().c_str());
|
||||||
|
@ -373,11 +374,14 @@ cmTargetLinkLibrariesCommand::HandleLibrary(const char* lib,
|
||||||
? cmTarget::KeywordTLLSignature : cmTarget::PlainTLLSignature;
|
? cmTarget::KeywordTLLSignature : cmTarget::PlainTLLSignature;
|
||||||
if (!this->Target->PushTLLCommandTrace(sig))
|
if (!this->Target->PushTLLCommandTrace(sig))
|
||||||
{
|
{
|
||||||
|
cmOStringStream e;
|
||||||
const char *modal = 0;
|
const char *modal = 0;
|
||||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||||
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0023))
|
switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0023))
|
||||||
{
|
{
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
|
e << this->Makefile->GetPolicies()
|
||||||
|
->GetPolicyWarning(cmPolicies::CMP0023) << "\n";
|
||||||
modal = "should";
|
modal = "should";
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
break;
|
break;
|
||||||
|
@ -390,14 +394,12 @@ cmTargetLinkLibrariesCommand::HandleLibrary(const char* lib,
|
||||||
|
|
||||||
if(modal)
|
if(modal)
|
||||||
{
|
{
|
||||||
cmOStringStream e;
|
|
||||||
// If the sig is a keyword form and there is a conflict, the existing
|
// If the sig is a keyword form and there is a conflict, the existing
|
||||||
// form must be the plain form.
|
// form must be the plain form.
|
||||||
const char *existingSig
|
const char *existingSig
|
||||||
= (sig == cmTarget::KeywordTLLSignature ? "plain"
|
= (sig == cmTarget::KeywordTLLSignature ? "plain"
|
||||||
: "keyword");
|
: "keyword");
|
||||||
e << this->Makefile->GetPolicies()
|
e <<
|
||||||
->GetPolicyWarning(cmPolicies::CMP0023) << "\n"
|
|
||||||
"The " << existingSig << " signature for target_link_libraries "
|
"The " << existingSig << " signature for target_link_libraries "
|
||||||
"has already been used with the target \""
|
"has already been used with the target \""
|
||||||
<< this->Target->GetName() << "\". All uses of "
|
<< this->Target->GetName() << "\". All uses of "
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
CMake Error at CMP0026-CONFIG-LOCATION-NEW.cmake:7 \(get_target_property\):
|
CMake Error at CMP0026-CONFIG-LOCATION-NEW.cmake:7 \(get_target_property\):
|
||||||
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
|
|
||||||
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
|
|
||||||
command to set the policy and suppress this warning.
|
|
||||||
|
|
||||||
The LOCATION property may not be read from target "somelib". Use the
|
The LOCATION property may not be read from target "somelib". Use the
|
||||||
target name directly with add_custom_command, or use the generator
|
target name directly with add_custom_command, or use the generator
|
||||||
expression \$<TARGET_FILE>, as appropriate.
|
expression \$<TARGET_FILE>, as appropriate.
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
CMake Error at CMP0026-LOCATION-CONFIG-NEW.cmake:7 \(get_target_property\):
|
CMake Error at CMP0026-LOCATION-CONFIG-NEW.cmake:7 \(get_target_property\):
|
||||||
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
|
|
||||||
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
|
|
||||||
command to set the policy and suppress this warning.
|
|
||||||
|
|
||||||
The LOCATION property may not be read from target "somelib". Use the
|
The LOCATION property may not be read from target "somelib". Use the
|
||||||
target name directly with add_custom_command, or use the generator
|
target name directly with add_custom_command, or use the generator
|
||||||
expression \$<TARGET_FILE>, as appropriate.
|
expression \$<TARGET_FILE>, as appropriate.
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
CMake Error at CMP0026-NEW.cmake:7 \(get_target_property\):
|
CMake Error at CMP0026-NEW.cmake:7 \(get_target_property\):
|
||||||
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
|
|
||||||
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
|
|
||||||
command to set the policy and suppress this warning.
|
|
||||||
|
|
||||||
The LOCATION property may not be read from target "somelib". Use the
|
The LOCATION property may not be read from target "somelib". Use the
|
||||||
target name directly with add_custom_command, or use the generator
|
target name directly with add_custom_command, or use the generator
|
||||||
expression \$<TARGET_FILE>, as appropriate.
|
expression \$<TARGET_FILE>, as appropriate.
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
CMake Error at CMP0037-NEW-colon.cmake:4 \(add_library\):
|
CMake Error at CMP0037-NEW-colon.cmake:4 \(add_library\):
|
||||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
|
||||||
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The target name "lib:colon" is reserved or not valid for certain CMake
|
The target name "lib:colon" is reserved or not valid for certain CMake
|
||||||
features, such as generator expressions, and may result in undefined
|
features, such as generator expressions, and may result in undefined
|
||||||
behavior.
|
behavior.
|
||||||
|
@ -11,11 +6,6 @@ Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:3 \(include\)
|
CMakeLists.txt:3 \(include\)
|
||||||
+
|
+
|
||||||
CMake Error at CMP0037-NEW-colon.cmake:5 \(add_executable\):
|
CMake Error at CMP0037-NEW-colon.cmake:5 \(add_executable\):
|
||||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
|
||||||
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The target name "exe:colon" is reserved or not valid for certain CMake
|
The target name "exe:colon" is reserved or not valid for certain CMake
|
||||||
features, such as generator expressions, and may result in undefined
|
features, such as generator expressions, and may result in undefined
|
||||||
behavior.
|
behavior.
|
||||||
|
@ -23,11 +13,6 @@ Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:3 \(include\)
|
CMakeLists.txt:3 \(include\)
|
||||||
+
|
+
|
||||||
CMake Error at CMP0037-NEW-colon.cmake:6 \(add_custom_target\):
|
CMake Error at CMP0037-NEW-colon.cmake:6 \(add_custom_target\):
|
||||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
|
||||||
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The target name "custom:colon" is reserved or not valid for certain CMake
|
The target name "custom:colon" is reserved or not valid for certain CMake
|
||||||
features, such as generator expressions, and may result in undefined
|
features, such as generator expressions, and may result in undefined
|
||||||
behavior.
|
behavior.
|
||||||
|
|
|
@ -1,20 +1,10 @@
|
||||||
CMake Error at CMP0037-NEW-reserved.cmake:4 \(add_library\):
|
CMake Error at CMP0037-NEW-reserved.cmake:4 \(add_library\):
|
||||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
|
||||||
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The target name "all" is reserved or not valid for certain CMake features,
|
The target name "all" is reserved or not valid for certain CMake features,
|
||||||
such as generator expressions, and may result in undefined behavior.
|
such as generator expressions, and may result in undefined behavior.
|
||||||
Call Stack \(most recent call first\):
|
Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:3 \(include\)
|
CMakeLists.txt:3 \(include\)
|
||||||
+
|
+
|
||||||
CMake Error at CMP0037-NEW-reserved.cmake:5 \(add_executable\):
|
CMake Error at CMP0037-NEW-reserved.cmake:5 \(add_executable\):
|
||||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
|
||||||
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The target name "clean" is reserved or not valid for certain CMake
|
The target name "clean" is reserved or not valid for certain CMake
|
||||||
features, such as generator expressions, and may result in undefined
|
features, such as generator expressions, and may result in undefined
|
||||||
behavior.
|
behavior.
|
||||||
|
@ -22,11 +12,6 @@ Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:3 \(include\)
|
CMakeLists.txt:3 \(include\)
|
||||||
+
|
+
|
||||||
CMake Error at CMP0037-NEW-reserved.cmake:6 \(add_custom_target\):
|
CMake Error at CMP0037-NEW-reserved.cmake:6 \(add_custom_target\):
|
||||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
|
||||||
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The target name "help" is reserved or not valid for certain CMake features,
|
The target name "help" is reserved or not valid for certain CMake features,
|
||||||
such as generator expressions, and may result in undefined behavior.
|
such as generator expressions, and may result in undefined behavior.
|
||||||
Call Stack \(most recent call first\):
|
Call Stack \(most recent call first\):
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
CMake Error at CMP0037-NEW-space.cmake:4 \(add_library\):
|
CMake Error at CMP0037-NEW-space.cmake:4 \(add_library\):
|
||||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
|
||||||
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The target name "lib with spaces" is reserved or not valid for certain
|
The target name "lib with spaces" is reserved or not valid for certain
|
||||||
CMake features, such as generator expressions, and may result in undefined
|
CMake features, such as generator expressions, and may result in undefined
|
||||||
behavior.
|
behavior.
|
||||||
|
@ -11,11 +6,6 @@ Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:3 \(include\)
|
CMakeLists.txt:3 \(include\)
|
||||||
+
|
+
|
||||||
CMake Error at CMP0037-NEW-space.cmake:5 \(add_executable\):
|
CMake Error at CMP0037-NEW-space.cmake:5 \(add_executable\):
|
||||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
|
||||||
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The target name "exe with spaces" is reserved or not valid for certain
|
The target name "exe with spaces" is reserved or not valid for certain
|
||||||
CMake features, such as generator expressions, and may result in undefined
|
CMake features, such as generator expressions, and may result in undefined
|
||||||
behavior.
|
behavior.
|
||||||
|
@ -23,11 +13,6 @@ Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:3 \(include\)
|
CMakeLists.txt:3 \(include\)
|
||||||
+
|
+
|
||||||
CMake Error at CMP0037-NEW-space.cmake:6 \(add_custom_target\):
|
CMake Error at CMP0037-NEW-space.cmake:6 \(add_custom_target\):
|
||||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
|
||||||
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The target name "custom with spaces" is reserved or not valid for certain
|
The target name "custom with spaces" is reserved or not valid for certain
|
||||||
CMake features, such as generator expressions, and may result in undefined
|
CMake features, such as generator expressions, and may result in undefined
|
||||||
behavior.
|
behavior.
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
CMake Error at CMP0039-NEW.cmake:7 \(target_link_libraries\):
|
CMake Error at CMP0039-NEW.cmake:7 \(target_link_libraries\):
|
||||||
Policy CMP0039 is not set: Utility targets may not have link dependencies.
|
|
||||||
Run "cmake --help-policy CMP0039" for policy details. Use the cmake_policy
|
|
||||||
command to set the policy and suppress this warning.
|
|
||||||
|
|
||||||
Utility target "utility" must not be used as the target of a
|
Utility target "utility" must not be used as the target of a
|
||||||
target_link_libraries call.
|
target_link_libraries call.
|
||||||
Call Stack \(most recent call first\):
|
Call Stack \(most recent call first\):
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
CMake Error at CMP0040-NEW-missing-target.cmake:3 \(add_custom_command\):
|
CMake Error at CMP0040-NEW-missing-target.cmake:3 \(add_custom_command\):
|
||||||
Policy CMP0040 is not set: The target in the TARGET signature of
|
|
||||||
add_custom_command\(\) must exist. Run "cmake --help-policy CMP0040" for
|
|
||||||
policy details. Use the cmake_policy command to set the policy and
|
|
||||||
suppress this warning.
|
|
||||||
+
|
|
||||||
The target name "foobar" is unknown in this context.
|
The target name "foobar" is unknown in this context.
|
||||||
Call Stack \(most recent call first\):
|
Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:3 \(include\)
|
CMakeLists.txt:3 \(include\)
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
CMake Error at CMP0046-NEW-missing-dependency.cmake:4 \(add_dependencies\):
|
CMake Error at CMP0046-NEW-missing-dependency.cmake:4 \(add_dependencies\):
|
||||||
Policy CMP0046 is not set: Error on non-existent dependency in
|
|
||||||
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
|
|
||||||
Use the cmake_policy command to set the policy and suppress this warning.
|
|
||||||
+
|
|
||||||
The dependency target "bar" of target "foo" does not exist.
|
The dependency target "bar" of target "foo" does not exist.
|
||||||
Call Stack \(most recent call first\):
|
Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:3 \(include\)
|
CMakeLists.txt:3 \(include\)
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
CMake Error at subdir2/CMakeLists.txt:2 \(include\):
|
CMake Error at subdir2/CMakeLists.txt:2 \(include\):
|
||||||
Policy CMP0024 is not set: Disallow include export result. Run "cmake
|
|
||||||
--help-policy CMP0024" for policy details. Use the cmake_policy command to
|
|
||||||
set the policy and suppress this warning.
|
|
||||||
|
|
||||||
The file
|
The file
|
||||||
|
|
||||||
.*/Tests/RunCMake/include/CMP0024-NEW-build/subdir1/theTargets.cmake
|
.*/Tests/RunCMake/include/CMP0024-NEW-build/subdir1/theTargets.cmake
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
CMake Error at CMP0023-NEW-2.cmake:11 \(target_link_libraries\):
|
CMake Error at CMP0023-NEW-2.cmake:11 \(target_link_libraries\):
|
||||||
Policy CMP0023 is not set: Plain and keyword target_link_libraries
|
|
||||||
signatures cannot be mixed. Run "cmake --help-policy CMP0023" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The plain signature for target_link_libraries has already been used with
|
The plain signature for target_link_libraries has already been used with
|
||||||
the target "foo". All uses of target_link_libraries with a target must be
|
the target "foo". All uses of target_link_libraries with a target must be
|
||||||
either all-keyword or all-plain.
|
either all-keyword or all-plain.
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
CMake Error at CMP0023-NEW.cmake:11 \(target_link_libraries\):
|
CMake Error at CMP0023-NEW.cmake:11 \(target_link_libraries\):
|
||||||
Policy CMP0023 is not set: Plain and keyword target_link_libraries
|
|
||||||
signatures cannot be mixed. Run "cmake --help-policy CMP0023" for policy
|
|
||||||
details. Use the cmake_policy command to set the policy and suppress this
|
|
||||||
warning.
|
|
||||||
|
|
||||||
The plain signature for target_link_libraries has already been used with
|
The plain signature for target_link_libraries has already been used with
|
||||||
the target "foo". All uses of target_link_libraries with a target must be
|
the target "foo". All uses of target_link_libraries with a target must be
|
||||||
either all-keyword or all-plain.
|
either all-keyword or all-plain.
|
||||||
|
|
Loading…
Reference in New Issue