|
|
@@ -171,6 +171,7 @@ public:
|
|
|
bool IsGeneratorProvided;
|
|
|
bool HaveInstallRule;
|
|
|
bool IsDLLPlatform;
|
|
|
+ bool IsAIX;
|
|
|
bool IsAndroid;
|
|
|
bool IsImportedTarget;
|
|
|
bool ImportedGloballyVisible;
|
|
|
@@ -219,6 +220,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
|
|
|
impl->IsGeneratorProvided = false;
|
|
|
impl->HaveInstallRule = false;
|
|
|
impl->IsDLLPlatform = false;
|
|
|
+ impl->IsAIX = false;
|
|
|
impl->IsAndroid = false;
|
|
|
impl->IsImportedTarget =
|
|
|
(vis == VisibilityImported || vis == VisibilityImportedGlobally);
|
|
|
@@ -229,6 +231,10 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
|
|
|
impl->IsDLLPlatform =
|
|
|
!impl->Makefile->GetSafeDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX").empty();
|
|
|
|
|
|
+ // Check whether we are targeting AIX.
|
|
|
+ impl->IsAIX =
|
|
|
+ (impl->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME") == "AIX");
|
|
|
+
|
|
|
// Check whether we are targeting an Android platform.
|
|
|
impl->IsAndroid =
|
|
|
(impl->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME") == "Android");
|
|
|
@@ -1664,6 +1670,11 @@ bool cmTarget::IsDLLPlatform() const
|
|
|
return impl->IsDLLPlatform;
|
|
|
}
|
|
|
|
|
|
+bool cmTarget::IsAIX() const
|
|
|
+{
|
|
|
+ return impl->IsAIX;
|
|
|
+}
|
|
|
+
|
|
|
bool cmTarget::IsImported() const
|
|
|
{
|
|
|
return impl->IsImportedTarget;
|