diff options
author | Brad King <brad.king@kitware.com> | 2020-05-14 18:59:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-18 16:56:55 (GMT) |
commit | d6a88d21589f5b614baea16b25261b416651533c (patch) | |
tree | bafde7edfb69cff55fc77e7cb43e31b546f2eab3 /Source/cmMakefile.cxx | |
parent | d7e82a11d513c7f267cd2141bf1638ce7305a9a1 (diff) | |
download | CMake-d6a88d21589f5b614baea16b25261b416651533c.zip CMake-d6a88d21589f5b614baea16b25261b416651533c.tar.gz CMake-d6a88d21589f5b614baea16b25261b416651533c.tar.bz2 |
cmTarget: Replace "perConfig" constructor boolean with enum
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 6f05d45..154da50 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -2081,11 +2081,11 @@ cmTarget* cmMakefile::AddExecutable(const std::string& exeName, cmTarget* cmMakefile::AddNewTarget(cmStateEnums::TargetType type, const std::string& name) { - auto it = - this->Targets - .emplace(name, - cmTarget(name, type, cmTarget::VisibilityNormal, this, true)) - .first; + auto it = this->Targets + .emplace(name, + cmTarget(name, type, cmTarget::VisibilityNormal, this, + cmTarget::PerConfig::Yes)) + .first; this->OrderedTargets.push_back(&it->second); this->GetGlobalGenerator()->IndexTarget(&it->second); this->GetStateSnapshot().GetDirectory().AddNormalTargetName(name); @@ -4261,7 +4261,7 @@ cmTarget* cmMakefile::AddImportedTarget(const std::string& name, new cmTarget(name, type, global ? cmTarget::VisibilityImportedGlobally : cmTarget::VisibilityImported, - this, true)); + this, cmTarget::PerConfig::Yes)); // Add to the set of available imported targets. this->ImportedTargets[name] = target.get(); |