summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-02-14 17:21:06 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-02-14 17:28:58 (GMT)
commit1d0426f6426ef88342f3a57fb555a2b2d8891712 (patch)
tree995dd6d865e4ce1e2fa3b97396a19d47ed82b0f5 /Source/cmTarget.cxx
parent5b5869532145ff4425d7abfd09eaae6a638b6810 (diff)
downloadCMake-1d0426f6426ef88342f3a57fb555a2b2d8891712.zip
CMake-1d0426f6426ef88342f3a57fb555a2b2d8891712.tar.gz
CMake-1d0426f6426ef88342f3a57fb555a2b2d8891712.tar.bz2
cmTarget: make Visibility an `enum class`
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 8c71295..48f92b5 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1863,7 +1863,7 @@ void cmTarget::StoreProperty(const std::string& prop, ValueType value)
}
/* no need to change anything if value does not change */
if (!this->IsImportedGloballyVisible()) {
- this->impl->TargetVisibility = VisibilityImportedGlobally;
+ this->impl->TargetVisibility = Visibility::ImportedGlobally;
this->GetGlobalGenerator()->IndexTarget(this);
}
} else if (cmHasLiteralPrefix(prop, "IMPORTED_LIBNAME") &&
@@ -2557,10 +2557,10 @@ bool cmTarget::IsAIX() const
bool cmTarget::IsNormal() const
{
switch (this->impl->TargetVisibility) {
- case VisibilityNormal:
+ case Visibility::Normal:
return true;
- case VisibilityImported:
- case VisibilityImportedGlobally:
+ case Visibility::Imported:
+ case Visibility::ImportedGlobally:
return false;
}
assert(false && "unknown visibility (IsNormal)");
@@ -2570,10 +2570,10 @@ bool cmTarget::IsNormal() const
bool cmTargetInternals::IsImported() const
{
switch (this->TargetVisibility) {
- case cmTarget::VisibilityImported:
- case cmTarget::VisibilityImportedGlobally:
+ case cmTarget::Visibility::Imported:
+ case cmTarget::Visibility::ImportedGlobally:
return true;
- case cmTarget::VisibilityNormal:
+ case cmTarget::Visibility::Normal:
return false;
}
assert(false && "unknown visibility (IsImported)");
@@ -2588,10 +2588,10 @@ bool cmTarget::IsImported() const
bool cmTarget::IsImportedGloballyVisible() const
{
switch (this->impl->TargetVisibility) {
- case VisibilityImportedGlobally:
+ case Visibility::ImportedGlobally:
return true;
- case VisibilityNormal:
- case VisibilityImported:
+ case Visibility::Normal:
+ case Visibility::Imported:
return false;
}
assert(false && "unknown visibility (IsImportedGloballyVisible)");