summaryrefslogtreecommitdiff
path: root/Source/cmTargetPropCommandBase.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-18 21:28:46 +0200
committerStephen Kelly <steveire@gmail.com>2016-10-19 15:40:58 +0200
commita49751fb2eed0ca6415b243c35b23201b8060597 (patch)
treea96a9932ebefd4fb254ac2c769bee78fc6aefdb9 /Source/cmTargetPropCommandBase.cxx
parent0060391dffe824526b1f359db79c66c55e53d0c5 (diff)
downloadcmake-a49751fb2eed0ca6415b243c35b23201b8060597.tar.gz
cmState: Move TargetType enum to separate namespace
Diffstat (limited to 'Source/cmTargetPropCommandBase.cxx')
-rw-r--r--Source/cmTargetPropCommandBase.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmTargetPropCommandBase.cxx b/Source/cmTargetPropCommandBase.cxx
index a00360bc58..e2e02ad66a 100644
--- a/Source/cmTargetPropCommandBase.cxx
+++ b/Source/cmTargetPropCommandBase.cxx
@@ -28,12 +28,12 @@ bool cmTargetPropCommandBase::HandleArguments(
this->HandleMissingTarget(args[0]);
return false;
}
- if ((this->Target->GetType() != cmState::SHARED_LIBRARY) &&
- (this->Target->GetType() != cmState::STATIC_LIBRARY) &&
- (this->Target->GetType() != cmState::OBJECT_LIBRARY) &&
- (this->Target->GetType() != cmState::MODULE_LIBRARY) &&
- (this->Target->GetType() != cmState::INTERFACE_LIBRARY) &&
- (this->Target->GetType() != cmState::EXECUTABLE)) {
+ if ((this->Target->GetType() != cmStateEnums::SHARED_LIBRARY) &&
+ (this->Target->GetType() != cmStateEnums::STATIC_LIBRARY) &&
+ (this->Target->GetType() != cmStateEnums::OBJECT_LIBRARY) &&
+ (this->Target->GetType() != cmStateEnums::MODULE_LIBRARY) &&
+ (this->Target->GetType() != cmStateEnums::INTERFACE_LIBRARY) &&
+ (this->Target->GetType() != cmStateEnums::EXECUTABLE)) {
this->SetError("called with non-compilable target type");
return false;
}
@@ -86,7 +86,7 @@ bool cmTargetPropCommandBase::ProcessContentArgs(
return false;
}
- if (this->Target->GetType() == cmState::INTERFACE_LIBRARY &&
+ if (this->Target->GetType() == cmStateEnums::INTERFACE_LIBRARY &&
scope != "INTERFACE") {
this->SetError("may only be set INTERFACE properties on INTERFACE "
"targets");