mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
cmTargetPropCommandBase: Order target type condition by order in enum
This improves readability.
This commit is contained in:
committed by
Brad King
parent
0c6e27bff1
commit
62b5d1e4ad
@@ -32,12 +32,12 @@ bool cmTargetPropCommandBase::HandleArguments(
|
|||||||
this->HandleMissingTarget(args[0]);
|
this->HandleMissingTarget(args[0]);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ((this->Target->GetType() != cmStateEnums::SHARED_LIBRARY) &&
|
if ((this->Target->GetType() != cmStateEnums::EXECUTABLE) &&
|
||||||
(this->Target->GetType() != cmStateEnums::STATIC_LIBRARY) &&
|
(this->Target->GetType() != cmStateEnums::STATIC_LIBRARY) &&
|
||||||
(this->Target->GetType() != cmStateEnums::OBJECT_LIBRARY) &&
|
(this->Target->GetType() != cmStateEnums::SHARED_LIBRARY) &&
|
||||||
(this->Target->GetType() != cmStateEnums::MODULE_LIBRARY) &&
|
(this->Target->GetType() != cmStateEnums::MODULE_LIBRARY) &&
|
||||||
(this->Target->GetType() != cmStateEnums::INTERFACE_LIBRARY) &&
|
(this->Target->GetType() != cmStateEnums::OBJECT_LIBRARY) &&
|
||||||
(this->Target->GetType() != cmStateEnums::EXECUTABLE)) {
|
(this->Target->GetType() != cmStateEnums::INTERFACE_LIBRARY)) {
|
||||||
this->SetError("called with non-compilable target type");
|
this->SetError("called with non-compilable target type");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user