summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-14 18:59:31 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-18 16:56:55 (GMT)
commitd6a88d21589f5b614baea16b25261b416651533c (patch)
treebafde7edfb69cff55fc77e7cb43e31b546f2eab3 /Source/cmTarget.cxx
parentd7e82a11d513c7f267cd2141bf1638ce7305a9a1 (diff)
downloadCMake-d6a88d21589f5b614baea16b25261b416651533c.zip
CMake-d6a88d21589f5b614baea16b25261b416651533c.tar.gz
CMake-d6a88d21589f5b614baea16b25261b416651533c.tar.bz2
cmTarget: Replace "perConfig" constructor boolean with enum
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index d43fbe5..e165f4c 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -215,7 +215,7 @@ public:
};
cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
- Visibility vis, cmMakefile* mf, bool perConfig)
+ Visibility vis, cmMakefile* mf, PerConfig perConfig)
: impl(cm::make_unique<cmTargetInternals>())
{
assert(mf);
@@ -231,7 +231,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
(vis == VisibilityImported || vis == VisibilityImportedGlobally);
impl->ImportedGloballyVisible = vis == VisibilityImportedGlobally;
impl->BuildInterfaceIncludesAppended = false;
- impl->PerConfig = perConfig;
+ impl->PerConfig = (perConfig == PerConfig::Yes);
// Check whether this is a DLL platform.
impl->IsDLLPlatform =