mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 13:50:10 -05:00
Source: Use cmValue::IsOn and IsOff
Speed up a bit by calling members directly.
This commit is contained in:
+2
-2
@@ -2151,7 +2151,7 @@ void cmTarget::SetProperty(const std::string& prop, cmValue value)
|
||||
}
|
||||
|
||||
if (prop == propIMPORTED_GLOBAL) {
|
||||
if (!cmIsOn(value)) {
|
||||
if (!value.IsOn()) {
|
||||
std::ostringstream e;
|
||||
e << "IMPORTED_GLOBAL property can't be set to FALSE on targets (\""
|
||||
<< this->impl->Name << "\")\n";
|
||||
@@ -2845,7 +2845,7 @@ std::string const& cmTarget::GetSafeProperty(std::string const& prop) const
|
||||
|
||||
bool cmTarget::GetPropertyAsBool(const std::string& prop) const
|
||||
{
|
||||
return cmIsOn(this->GetProperty(prop));
|
||||
return this->GetProperty(prop).IsOn();
|
||||
}
|
||||
|
||||
cmPropertyMap const& cmTarget::GetProperties() const
|
||||
|
||||
Reference in New Issue
Block a user