summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.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/cmMakefile.cxx
parent5b5869532145ff4425d7abfd09eaae6a638b6810 (diff)
downloadCMake-1d0426f6426ef88342f3a57fb555a2b2d8891712.zip
CMake-1d0426f6426ef88342f3a57fb555a2b2d8891712.tar.gz
CMake-1d0426f6426ef88342f3a57fb555a2b2d8891712.tar.bz2
cmTarget: make Visibility an `enum class`
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 0ad0e6e..457204a 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2120,7 +2120,7 @@ std::pair<cmTarget&, bool> cmMakefile::CreateNewTarget(
cmTarget::PerConfig perConfig)
{
auto ib = this->Targets.emplace(
- name, cmTarget(name, type, cmTarget::VisibilityNormal, this, perConfig));
+ name, cmTarget(name, type, cmTarget::Visibility::Normal, this, perConfig));
auto it = ib.first;
if (!ib.second) {
return std::make_pair(std::ref(it->second), false);
@@ -4203,8 +4203,8 @@ cmTarget* cmMakefile::AddImportedTarget(const std::string& name,
// Create the target.
std::unique_ptr<cmTarget> target(
new cmTarget(name, type,
- global ? cmTarget::VisibilityImportedGlobally
- : cmTarget::VisibilityImported,
+ global ? cmTarget::Visibility::ImportedGlobally
+ : cmTarget::Visibility::Imported,
this, cmTarget::PerConfig::Yes));
// Add to the set of available imported targets.